C Programming :: C Fundamentals
- If integer needs two bytes of storage, then maximum value of an unsigned integer is
- What is the correct value to return to the operating system upon the successful completion of a program?
- Which is the only function all C programs must contain?
-
What number would be shown on the screen after the following statements of C are executed?
char ch;
int i;
ch = 'G';
i = ch-'A';
printf("%d", i);
- Which of following is not a valid name for a C variable?
- Find the output of the following program. void main() { int i=01289; printf("%d", i); }
-
Find the output of the following program.
void main()
{
int i=065, j=65;
printf("%d %d", i, j);
}
-
If ASCII value of 'x' is 120, then what is the value of the H, if
H = ('x' – 'w' ) / 3; - What is the difference between a declaration and a definition of a variable?
A.
Both can occur multiple times, but a declaration must occur first. |
B.
A definition occurs once, but a declaration may occur many times. |
C.
Both can occur multiple times, but a definition must occur first. |
D.
A declaration occurs once, but a definition may occur many times. |
E.
There is no difference between them. |