C Programming Questions & Answers: part16



Software Programming : C Programming QUESTIONS AND ANSWERS :: part16 : 11 to 15

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

11.Which of the following puts program in the memory?

preprocessor
compiler
linker
loader
editor.

12.Which escape character can be used to begin a new line in C?

\a
\n
\l
\m
\t.

13.char* myFunc (char *ptr) {ptr += 3; return (ptr); } int main() {char *x, *y; x = "HELLO"; y = myFunc (x); printf ("y = %s \n", y); return 0; } What is the output when the sample code above is executed?

y = HELLO
y = ELLO
y = LLO
y = LO
x = O.

14.What is the difference between a declaration and a definition of a variable?

Both can occur multiple times, but a declaration must occur first
There is no difference between them
A definition occurs once, but a declaration may occur many times
A declaration occurs once, but a definition may occur many times
Both can occur multiple times, but a definition must occur first.

More C Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
Opportunity is missed by most people because it is dressed in overalls and looks like work.- Thomas Edison