C Programming - Strings - Discussion
Discussion Forum : Strings - Find Output of Program (Q.No. 18)
18.
What will be the output of the program ?
#include<stdio.h>
int main()
{
static char mess[6][30] = {"Don't walk in front of me...",
"I may not follow;",
"Don't walk behind me...",
"Just walk beside me...",
"And be my friend." };
printf("%c, %c\n", *(mess[2]+9), *(*(mess+2)+9));
return 0;
}
Discussion:
21 comments Page 2 of 3.
Romil said:
1 decade ago
Please give us more description about this problem.
Suraj said:
8 years ago
@Raju.
How you find k in line no 3 and char 10?
How you find k in line no 3 and char 10?
Roshni said:
8 years ago
Can anyone please explain it in details.
Shalini shah said:
3 months ago
How this executes? Please explain me.
Smash said:
9 years ago
Thank you very much @Abhimanyu.
Shiv said:
9 years ago
Thanks @Inside C & @Abhimanyu.
Vishu said:
9 years ago
Thank you @Abhimanyu.
Swati said:
8 years ago
Thanks @Abhimanyu.
Eswari reddy said:
8 years ago
Thank you @Raghu.
Sss said:
1 decade ago
Thanks Abhimanyu.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers