[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C Programming :: Arrays - Discussion

Home > C Programming > Arrays > MCQs Questions Discussion

38 / 55

What will be output of the following "c" code?

#include<stdio.h>
void 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;
}
}

A234522222

B2345

C23452345

D2222223465

Answer: Option (Login/Signup)

Show Explanation

Asked In ::

Post Your Answer Here:     

No Discussion on this question yet!