what is the output of the following program?
main()
{
int c[]={2,8,3,4,4,6,7,5};
int j,*p=c,*q=c;
for(j=0;j<5;j++)
{
printf("%d",*c);
++q;
}
for(j=0;j<5;j++)
{
printf("%d",*p);
++p;
}
}
Answer Posted / abhradeep chatterjee
2222228344 will be the answer. I think everybody answered
before me is correct.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the explanation for cyclic nature of data types in c?
What is the use of function overloading in C?
How can you find out how much memory is available?
What are # preprocessor operator in c?
while initialization of array why we use a[][2] why not a[2][]...?
How is a structure member accessed?
Does sprintf put null character?
What is volatile variable how do you declare it?
What is difference between structure and union?
explain what is an endless loop?
What are conditional operators in C?
What is wrong with this code?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
What is difference between arrays and pointers?
Difference between Function to pointer and pointer to function