C Programming :: Pointers - Discussion
Home > C Programming > Pointers > MCQs Questions Discussion
14 / 60
What is the output of the following C Program?
#include<stdio.h>
void main( )
{
char *q;
int j;
for (j=0; j<3; j++)
scanf("%s" ,(q+j));
for (j=0; j<3; j++)
printf("%c" ,*(q+j));
for (j=0; j<3; j++)
printf("%s" ,(q+j));
}
#include<stdio.h>
void main( )
{
char *q;
int j;
for (j=0; j<3; j++)
scanf("%s" ,(q+j));
for (j=0; j<3; j++)
printf("%c" ,*(q+j));
for (j=0; j<3; j++)
printf("%s" ,(q+j));
}
ACompilation Error
BNo Error
CPrint the given Input
DSegmentation Fault
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!