[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 :: String - Discussion

Home > C Programming > String > MCQs Questions Discussion

17 / 26

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

#include<stdio.h>
void main()
{
char s[]="main";
int i;
for(i=0; s[i]; i++)
printf("%c %c %c %c", s[i], *(s+i), *(i+s),i[s]);
}

Amain

BCompilation Error

Cm m m ma a a ai i i in n n n

DNone of these

Answer: Option (Login/Signup)

Show Explanation

Asked In :: Sopra Steria

Post Your Answer Here:     

No Discussion on this question yet!