C Programming - Input / Output - Discussion
Discussion Forum : Input / Output - Find Output of Program (Q.No. 10)
10.
What will be the output of the program ?
#include<stdio.h>
int main()
{
printf("%%%%\n");
return 0;
}
Discussion:
36 comments Page 4 of 4.
Divya said:
8 years ago
@Ganesh.
You are right. In GCC, it is taking like that. Don't know about turbo C. Thank you, friends.
You are right. In GCC, it is taking like that. Don't know about turbo C. Thank you, friends.
Pavankumar said:
8 years ago
Should we write printf ("\" " ") ;
Printf("""");
What will be display?
Printf("""");
What will be display?
(1)
Kartik Raghav said:
8 years ago
@Niranjan: if we input %% then output ill be single %. If we input %%% then output will same single %.
What is logic behind it? explain?
What is logic behind it? explain?
(1)
Reuben said:
7 years ago
Thanks all.
(1)
Anand Kumar S said:
7 years ago
% % will be shown as only %.
= (%%)(%%),
= (%)(%),
= %%.
= (%%)(%%),
= (%)(%),
= %%.
(3)
Prajwalita said:
6 years ago
Thanks all for the explanation.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers