339 views
1 votes
1 votes
int main(void) {
    // your code goes here
    int main()
{
FILE *fp;
char ch, str[7];
fp=fopen("test.c", "r"); /* file 'try.c' contains "This is manipal" */
fseek(fp, 9L, SEEK_CUR);
fgets(str, 5, fp);
puts(str);
return 0;

Please log in or register to answer this question.

Related questions

1 votes
1 votes
2 answers
1
Ashwani Kumar 2 asked Jun 25, 2017
1,030 views
#include <stdio.h int main() { int a; char *x; x= (char *) &a; a=512; x[0]=1; x =2; printf("%d\n",a); return 0; }
1 votes
1 votes
1 answer
2
Prajwal Bhat asked Aug 19, 2016
1,112 views
#include<stdio.h>int main(){int a = 10, b = 20, c = 30, d = 40;printf("%d%d%d",a, b, c);printf("%d%d%d", d);return 0;}What is the Output and when I run it I am getting so...
2 votes
2 votes
2 answers
3
kvkumar asked Jun 6, 2016
484 views
#include<stdio.h int main(){ int a; if(a=printf("hello")) printf("gatecse%d",a); }
1 votes
1 votes
1 answer
4
komal07 asked Jul 11, 2015
708 views
printf("xy","ab","mn") will printa)xy b)xy ab mn c)garbage value d) error