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
The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none
Explain spaghetti programming?
What is null in c?
What does %c do in c?
Explain about C function prototype?
What is floating point constants?
What is use of bit field?
Explain what will the preprocessor do for a program?
Differentiate between the expression “++a” and “a++”?
What does %d do?
What is c programing language?
Place the #include statement must be written in the program?
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
How can you allocate arrays or structures bigger than 64K?
Explain how do you list files in a directory?