Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write the output of the programs. 1. #include using namespace std; void main(void) Output : int a[9]={1,2,3,4,5,6,7,8,9}; int * p=a,sum=0; for(;p using namespace std; void

image text in transcribedimage text in transcribedimage text in transcribed
Write the output of the programs. 1. #include using namespace std; void main(void) Output : int a[9]={1,2,3,4,5,6,7,8,9}; int * p=a,sum=0; for(;p using namespace std; void main(void) char *s="ab5eafegdacdf",*p; Output : int i,ja={0,0,0,0}; for(p=s;*p!=\\\\0";p++) j=*p-'a"; if(j>=0&&j using namespace std; void main(void) Output : char b="ab12cd34ef",*a=b; int i,j; for(i=j=0;a[i];i+ +) if(a[i]>="a'&&a[i]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions