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 1 of 3.
Shalini shah said:
3 months ago
How this executes? Please explain me.
Shadhu said:
5 years ago
@Sirisha.
Space is a character, comma is a separator.
So here we need to consider space also.
Space is a character, comma is a separator.
So here we need to consider space also.
(1)
Sirisha said:
7 years ago
How can we consider the space b/w words, is it seperator or character?
Roshni said:
8 years ago
Can anyone please explain it in details.
Eswari reddy said:
8 years ago
Thank you @Raghu.
Swati said:
8 years ago
Thanks @Abhimanyu.
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?
Ragini said:
8 years ago
There are 6 rows and 30 columns, so how you can say 6+1 rows and 30+1Columns.?
Please explain.
Please explain.
Vishu said:
9 years ago
Thank you @Abhimanyu.
Shiv said:
9 years ago
Thanks @Inside C & @Abhimanyu.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers