C Programming Questions & Answers: part10



Software Programming : C Programming QUESTIONS AND ANSWERS :: part10 : 6 to 10

Following Software Programming language Entrance Multiple choice objective type questions and answers will help you in Software Programming 2024 examinations :

6.In the statement # define, the symbol # must commence from

Any where in any line
First character of that line
Before main() function but after # include statement always
Before main() function but before # include statement always
Any where out side of main() always.

7.What will be the value of �i� after the following code is executed, provided 1 as the initial value of �i�? i = (i <<= i%2 );

Syntax Error
Logical error
2
1
0.

8.From the following, which expression will correctly swap two integers x, y without using a temporary variable?

(x^=y), ( y^=x)
(x^=y), ( y^=x), (x^=y)
x^=(y^=x)
(x=y), (y=x)
(x=y), (y=x), (x=y).

9.The function sprintf( ) works like printf( ), but operates on

strings
data in a file
stderr
stdin
standard output device.

10.Arrange the operators �&�, �&&�, �|�, �||�, �^� based on priority.

& ^ | && ||
& && ^ | ||
& && | ^ ||
& && | || ^
& | ^ && ||.

More C Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
If your ship doesn’t come in, swim out to meet it!-Jonathan Winters