C - Functions

page 1 out of 5

page 1 out of 5


Question 1     

Point out the error in the program

#include<stdio.h>
int f(int a)
{
      a > 20? return(10): return(20);
}
int main()
{
      int f(int);
      int b;
      b = f(20);
      printf("%d\n", b);
      return 0;
}





Question 2     

Every function implementation contains






Question 3     

A C Program contains atleast one function




Question 4     

function implementation should include
 

 








Question 5     

what is the maximum limit for having the function in a C Program?






Question 6     

Arguments/parameters that are passed to the function in c is called






Question 7     

Arguments/parameters that are recieved by the function in c is called






Question 8     

Formal parameters and actual parameters should be same for the specific function in Program




Question 9     

what is the expected output of this program

function()
{
   
}
int main()
{
    printf("function=%d" , function());
    return 0;
}






Question 10     

what is the expected output of this program

void function()
{
   
}
int main()
{
    printf("function=%d" , function());
    return 0;
}





page 1 out of 5

page 1 out of 5


Sign Up Page

Oops!!

To view the solution need to Login



Score : 0 / 0
L
o
a
d
i
n
g
.
.
.