What will be output of the following “c” code?
Practice Input / Output – What will be output of the following “c” code?
take int=4,float=8,char=1
main() {
FILE *fp;
printf("%d",sizeof(fp) );
}
Practice Input / Output – What will be output of the following “c” code?
take int=4,float=8,char=1
main() {
FILE *fp;
printf("%d",sizeof(fp) );
}
Practice Input / Output – If a file contains the line “I am an Indian
” then on reading this line into the array str using fgets().
what would str contain?
Practice Input / Output – If the content of a file (input) is abc def. What will be the value of input and ch?.
#include
char input[100],ch;
void main(void)
{
FILE *fp;
fp = fopen("input","rb");
fscanf(fp, "%s" ,&input);
fscanf(fp, "%c" ,&ch);
printf("%s %c", input, ch);
}
Practice Input / Output – Which is true about fputs returns?
Practice Input / Output – The expression ((fpt = fopen (“Samples”, “w”)) == NULL) would be true if
Practice Input / Output – The function fopen (“filename”,”r”) returns
Practice Input / Output – What is the following C Program doing?
void main ()
{
char line [80];
gets (line);
puts (line);
}
Practice Input / Output – In the following statement, the variable fpt is
fprintf(fpt, “%n”, i);
Practice Input / Output – The function fprintf is used in a program
Practice Input / Output – x = fopen (b, c) what is b?
Practice Input / Output – float x, y, z;
scanf (“%f %f”, &x, &y);
If input stream contains “4.2 3 2.3 …”
What will x and y contain after scanf?

Practice Input / Output – What will be output of the following “C” code?
take int=4,float=8,char=1
main() {
FILE *fp;
printf("%d
",sizeof(fp) );
}
if i,j,k are integers, the scanf function to enter i,j,k such that i i

Practice Input / Output – if i,j,k are integers, the scanf function to enter i,j,k such that i is decimal,j is octal and k is hexadecimal would be
If a file contains the line “I am an Indian
” then on reading th

Practice Input / Output – If a file contains the line “I am an Indian
” then on reading this line into the array str using fgets().
what would str contain?
If the content of a file (input) is abc def. What will be the value of

Practice Input / Output – If the content of a file (input) is abc def. What will be the value of input and ch?.
#include
char input[100],ch;
void main(void)
{
FILE *fp;
fp = fopen("input","rb");
fscanf(fp, "%s" ,&input);
fscanf(fp, "%c" ,&ch);
printf("%s %c", input, ch);
}