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 external variable in c?
What is a nested formula?
Does sprintf put null character?
What is %g in c?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
Explain what are its uses in c programming?
What is difference between array and structure in c?
What is the ANSI C Standard?
What is meant by gets in c?
How many loops are there in c?
what are non standard function in c
How can I copy just a portion of a string?
I need testPalindrome and removeSpace
#include
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
How many types of functions are there in c?