C Programming and Technical Logical Reasoning Missing Character

Q. void main(){
int x=5,y=10,z=15,val;
val=sum(x,(y=0,z=0,y),z);
clrscr();
printf("%d",val);
getch();
}
sum(int x,int y,int z){
return x+y+z;
}

A. 20

Explanation: In the above program comma after Y=0 &Z=0 are behaving as operator

Read Solution (Total 0)

C Other Question

Q. What is command line argument?

A. Getting the arguments from command prompt in c is known as command line arguments. In c main function has three arguments.
They are:
Argument counter
Argument vector
Environment vector
Q. what is nested structure?

A. A structure is a collection of one or more variables, possibly of different data types, grouped together under a single name for convenient handling. Structures can contain other structures as members; in other words, structures can nest