hey please help me execute the code on ubuntu in C
#include<stdio. h>
#include<stdlib .h>
int main()
{
FILE *fp;
char ch;
float ticktock;
int val;
fp=fopen("pt1.t xt","rb");
while(!feof(fp) )
{
sscanf(fp, "time=%f value=%d", &ticktock, &val);
printf("%f",tic ktock);
printf("%d",val );
}
}
please send reply as soon as possible its urgent
#include<stdio. h>
#include<stdlib .h>
int main()
{
FILE *fp;
char ch;
float ticktock;
int val;
fp=fopen("pt1.t xt","rb");
while(!feof(fp) )
{
sscanf(fp, "time=%f value=%d", &ticktock, &val);
printf("%f",tic ktock);
printf("%d",val );
}
}
please send reply as soon as possible its urgent
Comment