Dear candidates you will find MCQ questions of C Programming here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
int main()
{
FILE *fp;
char ch;
fp=fopen("readme.txt","r");
while((ch=fgetc(fp)) != EOF)
{
printf("%c",ch);
}
}
FILE *fp;
fp=fopen("abc.txt","w");
int main()
{
FILE *fp;
char str[80];
fp=fopen("readme.txt","r");
while(fgets(str,80,fp) != NULL)
{
printf("%s",str);
}
fclose(fp);
}
char ary[]="Hello..!";
int main()
{
char ary[]="Discovery Channel";
printf("%s",ary);
return 0;
}
int main()
{
char str[]={'g','l','o','b','e'};
printf("%s",str);
return 0;
}
int main()
{
char str[]={'g','l','o','b','y','\0'};
printf("%s",str);
return 0;
}