+ 2
int main{printf("%%%%"); return 0;}
Why output of this program would be '%%'
1 Answer
+ 2
C compiler treats % as format specifier in printf
so to print % using printf u have to use %%
so printf("%%%%") outputs %%
Similarly for %% it outputs %
for %%%%%% it outputs %%%