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]);
}
#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 ::
No Discussion on this question yet!