C Programming - Pointers - Discussion

Discussion Forum : Pointers - Find Output of Program (Q.No. 14)
14.
What will be the output of the program ?
#include<stdio.h>

int main()
{
    char *str;
    str = "%d\n";
    str++;
    str++;
    printf(str-2, 300);
    return 0;
}
No output
30
3
300
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
43 comments Page 5 of 5.

Pankaj tilara said:   10 years ago
Thank you to all.

Ram said:   1 decade ago
printf is right?

Shami said:   9 years ago
Nice @Shubham.


Post your comments here:

Your comments will be displayed after verification.