logo codesdope

not giving the complete output

   neha samala

#include<stdio.h>

int main()

{

FILE *fp;

int roll;

char name[20];

fp=fopen("n.c","r");

if(fp==NULL)

{

printf("file not found");

exit(1);

}

printf("by fscanf");

fscanf(fp,"%s %d",name,&roll);

    printf("%s %d",name,roll);

fclose(fp);

}


Answers

Download Our App.
BlogsDope App
Get it on Google Play
Write your answer
Close

Welcome.please sign up.

Close

Welcome.please login.