FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
1808What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
1222main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
1506
What is function prototype in c with example?
What is a pointer in c?
What is #error and use of it?
Is c pass by value or reference?
What are the functions to open and close the file in c language?
What is break in c?
What is the right type to use for boolean values in c? Is there a standard type?
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
What is the 'named constructor idiom'?
What is the best way of making my program efficient?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
What are the standard predefined macros?
How do we print only part of a string in c?
What is wrong in this statement?
What is local and global variable in c?