Structures, Unions, Enums on C related Questions and Answers - Page 5

Question 42 : Which of the following data types are accepted while declaring bit-fields?
1. char
2. float
3. double
4. none of the mentioned
View Answer   Discuss with Members

Question 43 : To print out a and b given below, which of the following printf() statement will you use?
#include
float a=3.14;
double b=3.14;
1. printf(''%f %lf'', a, b);
2. printf(''%Lf %f'', a, b);
3. printf(''%Lf %Lf'', a, b);
4. printf(''%f %Lf'', a, b);
View Answer   Discuss with Members

Question 44 : Which of the following operations can be performed on the file ''NOTES.TXT'' using the below code?

FILE *fp;
fp = fopen(''NOTES.TXT'', ''r+'');
1. Reading
2. Writing
3. Appending
4. Read and Write
View Answer   Discuss with Members

Question 46 : In a file contains the line ''I am a boyrn'' then on reading this line into the array str using fgets(). What will str contain?
1. 'I am a boy\r\n\0''
2. 'I am a boy\r\0''
3. 'I am a boy\n\0''
4. 'I am a boy''
View Answer   Discuss with Members


View 41 - 46 of 46 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter