MCQOPTIONS
Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Testing Subject
General Aptitude
Logical and Verbal Reasoning
English Skills Ability
Technical Programming
Current Affairs
General Knowledge
Finance & Accounting
GATE (Mechanical Engineering)
Chemical Engineering
→
C Program
→
C Fundamentals
→
Functions have ..........
1.
Functions have ..........
A.
Local scope
B.
Block scope
C.
File scope
D.
Function scope
E.
No scope at all
Answer» D. Function scope
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
char* myfunc(char *ptr){ ptr+=3; return(ptr);}void main(){ char *x, *y; x = "EXAMVEDA"; y = myfunc(x); printf("y=%s", y);}What will be printed when the sample code above is executed?%!
When a function is recursively called all the automatic variables are stored in a ..........%!
Which of the following function calculates the square of 'x' in C?%!
Determine output:main(){ int i = abc(10); printf("%d", --i);}int abc(int i){ return(i++);}
Any C program
Use of functions
What will happen after compiling and running following code?main(){ printf("%p", main); }
What will be the output of the following program code?main(){ static int var = 5; printf("%d ", var--); if(var) main();}
Pick the correct statements.I.¬¨‚Ä ¬¨‚Ä ¬¨‚Ä The body of a function should have only one return statement.II.¬¨‚Ä ¬¨‚Ä The body of a function may have many return statements.III.¬¨‚Ä A function can return only one value to the calling environment.IV.¬¨‚Ä If return statement is omitted, then the function does its job but returns no value to the calling environment.$
Determine output:main(){ int i = 5; printf("%d%d%d%d%d", i++, i--, ++i, --i, i);}
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies