C Programming - Pointers - Discussion

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

int main()
{
    char *str;
    str = "%s";
    printf(str, "K\n");
    return 0;
}
Error
No output
K
%s
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
57 comments Page 6 of 6.

Preeti said:   1 decade ago
@kavyashree.

You are absolutely right.

Armaan said:   1 decade ago
Kavyashree is just correct

Arpan V Mohokar said:   1 decade ago
Kavyashree is correct

Prateek said:   1 decade ago
Kavyashree is correct

Sudheer said:   7 years ago
Thank you @Sandeep.

Taniya said:   1 decade ago
Thanx kavyashree.

Zdd said:   7 years ago
Thank you @Hann.


Post your comments here:

Your comments will be displayed after verification.