- What is the output of following code? printf("%5.2f",12345.6789);
- Justify following statement: Every line in C program must end with a semicolon.
- ++ and - - are known as __________operators.
- Justify following statement: The default case is compulsory in the switch case statement.
- What is the only function all C programs must contain?
- How to specify multi-line comments in C program?
- Justify following statement: Use of Comments reduces the speed of execution of a program.
- The statement printf (“%d”, ‘A’) would print the ________.
- Justify following statement: The line in C program may have more than one statements.
- The data type “int” requires _______ bytes in memory.
- The escape sequence character ______ causes the cursor to move to the next line on the screen.
- Justify following statement: The modulus operator (%) can be used only with integers.
- Mathematical functions such as sqrt, log, cos, etc. are available in _____________ header file.
- Justify following statement: In C programming, the statement a=a+1 and a+=1 will produce same result.
- Input output related functions such as printf, scanf , etc. are available in _____________ header file.
- Justify following statement: if and switch statements are examples of control statements in C.
- Find the output of following code: int x=500,y=200; printf("%d",( x > y ) ? x : y);
- What punctuation ends most lines of C code?
- The _________ variables can be accessed by any function in the program.
- Predict output of the following code:
void main() {
int i=0;
for(;i<5; i--)
printf("%d", i);
}
for(;i<5; i--)
printf("%d", i);
}
If you have any doubt about any question,
then write in a comment area at the bottom of this page.
* * * * *
No comments:
Post a Comment