Skip to Content

QUIZ Basic in C-Prog


Rating
0 0

There are no comments for now.

to be the first to leave a comment.

1. Which function is used to print output in C?
2. What is the correct syntax to declare a variable in C?
3. Which symbol is used to end a statement in C?
4. What will the these C-code output? #include <stdio.h> int main() { printf("%d", 5 + 3); return 0; }
5. Which of the following is the correct way to read user input in C?
7. Which of the following data types is used to store a single character in C?
9. What does the following code do? #include <stdio.h> int main() { int a = 10, b = 20; printf("%d", a + b); return 0; }
10. Which loop is used when the number of iterations is known beforehand in C?