C Programming - Pointers - Discussion

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

int main()
{
    char str[] = "peace";
    char *s = str;
    printf("%s\n", s++ +3);
    return 0;
}
peace
eace
ace
ce
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
40 comments Page 4 of 4.

Cfriend said:   1 decade ago
Monika you are genius yaar.

Prathyusha said:   1 decade ago
gud job!... @monika

Roshan said:   1 decade ago
Thanks monika...

Yogeshwari said:   9 years ago
Thanks @Monika.

BHAWNA KUKREJA said:   8 years ago
Thanks @Monika.

Swathi said:   1 decade ago
Thanks monika..

Poonam said:   1 decade ago
Thanks monika.

Sukrutha said:   1 decade ago
Thanks monika.

Piyush said:   1 decade ago
Thanks monika.

Roshini said:   1 decade ago
Thanks monica.


Post your comments here:

Your comments will be displayed after verification.