Please enter your email:
1. What is wrong in this code?
int a; scanf(“%d”, a);
2. Which function is used to print a string with newline automatically?
3. Output of this code?
float x = 12.3456; printf(“%.2f”, x);
4. What will happen if you use scanf("%s", name); for string input?
scanf("%s", name);
5. Which format specifier is used to read a double?
6. Which function is used to read a line of text (including spaces)?
7. Which format specifier is used to print a float value with 2 decimal places?
8. What is the output of this code?
char ch = ‘A’; printf(“%d”, ch);
9. Which code correctly reads student details: roll (int), name (string), marks (float)?
10. Which format specifier is used to read a string (word)?
Question 1 of 10
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.