Input / Output

1

Can we specify a variable filed width in a scanf() format string?

A. Yes
B. No

2

Will the following program work?

#include<stdio.h>

int main()
{
    int n=5;
    printf("n=%*d\n", n, n);
    return 0;
}
A. Yes
B. No

3

A file written in text mode can be read back in binary mode.

A. Yes
B. No

4

stderr, stdin, stdout are FILE pointers

A. Yes
B. No

5

In a call to printf() function the format specifier %b can be used to print binary equivalent

 of an integer.

A. True
B. False