C Programming :: Pointers - Discussion
Home > C Programming > Pointers > MCQs Questions Discussion
18 / 60
What is the output of the following C Program?
#include<stdio.h>
void main()
{
char *p = "program";
char c;
c = ++*p++;
printf("%c",c);
}
#include<stdio.h>
void main()
{
char *p = "program";
char c;
c = ++*p++;
printf("%c",c);
}
ASegmentation fault
BCompiler error: lvalue required
Cq
DNone of these
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!