C Test 2
C Test 2
a) &&
b) &
c) ||
d) |
What does the 'static' keyword do when used with a global variable in C?
a) Makes the variable constant
b) Limits the variable's scope to the current function
c) Retains the variable's value between function calls
d) Changes the data type of the variable
Which library function is used to read a character from the standard input in C?
a) scanf
b) gets
c) getchar
d) readchar
c
Copy code
int x = 5;
printf("%d", x++);
a) 5
b) 6
c) 7
d) 4