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;
}
%%%%%
%%
No output
Error
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
36 comments Page 3 of 4.

Viswa said:   1 decade ago
Thank you neeranjan. Your explanation is correct for this output.

Dheeraj said:   1 decade ago
Why printf("%??%%%%%\n"); giving output of %??%%% ?

Ponrasu said:   1 decade ago
why for printing %% in c?? wat reason?? tis is only c are c++

R.Monika said:   9 years ago
I want some more detail explanations! please help me friends.

Prateek said:   1 decade ago
There is no logic behind above answers.

Why happend it?

Anand Kumar S said:   7 years ago
% % will be shown as only %.
= (%%)(%%),
= (%)(%),
= %%.
(3)

Ranjitha said:   1 decade ago
@josna:

If we print %%% the result is % and not %%.

Praveen said:   1 decade ago
Salesh has given good logic.

Thank you Salesh.

Sunil said:   10 years ago
C is sea. If you want to find it will in deep.

Sharath said:   1 decade ago
Yes the answer given by Niranjan is correct.


Post your comments here:

Your comments will be displayed after verification.