COMPUTER SCIENCE AND ENGINEERING
DATA STRUCTURES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
What is the output of C Program with functions?int main() { show(); printf(“C “); return 0; } void show() { printf(“Programming"); }
|
C Programming
|
|
Programming
|
|
Programming C
|
|
Error
|
Explanation:
Detailed explanation-1: -11) What is the output of C Program with functions.? Explanation: int show() function returns TEN (10).
Detailed explanation-2: -In C++ the default return type of main is void, i.e. main() will not return anything. But, in C default return type of main is int, i.e. main() will return an integer value by default.
Detailed explanation-3: -C programming provides a set of built-in functions to read the given input and feed it to the program as per requirement. When we say Output, it means to display some data on screen, printer, or in any file.
There is 1 question to complete.