Suggest the suitable storage class for the variable,"a variable that spans multiple files "
static
extern
register
auto
What would be the output of the function ?
# include < iostream.n>
first (int,int);
second (int);
void main ( ) {
int x=10 , y=5, z;
z=first (x,y);
cout<<"\nz="< first (int x,int y) { return (x+second (y)); } second (int y) { return (++y); }
first (int x,int y) {
return (x+second (y)); }
second (int y) {
return (++y); }
10
15
16
17
The declaration of a function in the calling program is known as
prototype
definition
function call
return
Which storage class specifier can do the linking between the global variable in two or more files.
Auto
Extern
Static
None of these
Which storage class specifier is a modifier tells the compiler to store a variable in such a way that access to it is as fast as possible
REGISTER
AUTO
All the function prototypes are terminated with ___________
underscore
semicolon
colon
dot
The concept in which the same name gives different meanings in different context(with different parameters) is called
Recursive
Function loop
Function execution
Overloading
The address of the actual arguments which is used to pass to a function is called
Call by reference
Call by value
Function call
Return
Pick the correct storage class for " a variable global in one file and not available in another file "
global
static global
A function that cells itself directly or indirectly is reffered to as
Recursive function
Function definition
Prototype