Note 1

Take Note:

Take a note while surfing.





Note With Ink

Give your Note a Colorful Tag.




Easy to Access

Stay on same information and in Sync wherever you are.

Note 2

Take Note:

Organize your information,It may take Shape.





Think With Ink

Differ your Content by Color.




Easy to Access

Easy to pull up your content from anywhere anytime.

Note 3

Take Note:

Don't Let information to miss,Because it take shape





Note With Ink

Simple an Easy Way to take a note.




Easy to Access

Get the same in next visit.


Please wait...

C Programming :: Declarations and Initializations

21. Which of the following operators in 'C' programming language takes only integer operands?

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option D

Explanation:

% is the answer cause it always takes both the inputs as integers in c language.

Workspace


Tags:  No Tags on this question yet!

22. Which of the following option is correct for the below program?

#include
void main()
{
int a,b,c;
b=2;
a= 2*(b++);
c = 2*(++b);
}

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option D

Explanation:

b=2;   

a= 2*(b );..........a=2*2=4   Here post increment of b will take place and b value after this line has executed will become 2 1= 3.

c = 2*( b);  Here pre increment will take place and before the excecution of this line b value will become 3 1=4 hence c= 2*4=8



so o/p= a=4 and c=8.

Workspace


Tags:  No Tags on this question yet!

23. What is the output of the program?

#include
int main () {
int ( *Commprintf) (const char*, ... ) = printf;
Commprintf ( "Hello World");
return 0;
}

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option D

Explanation:

Here is no explanation for this answer

Workspace


Tags:  Commvault

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option D

Explanation:

A function with the same name cannot have different signatures.



 int func(int); double func(int);



A function with the same name cannot have different return types. 



double func(int);

int func(float);



  A function with the same name cannot have a different number of parameters



.int func(int);int func(float);



 

ShortCut By :: VIKAS KUMAR singh

A function with the same name cannot have different signatures.



 int func(int); double func(int);



A function with the same name cannot have different return types. 



double func(int);

int func(float);



  A function with the same name cannot have a different number of parameters



.int func(int);int func(float);



 

Workspace


Tags:  nagarro

25. What is the output of the following code?

include
void main()
{
int a=0, b=0;
a = (b =75)+9;
printf("\n%d, %d ",a,b);
}

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option C

Explanation:

a = (b =75) 9;......b value is assigned to 75 so a value will become 75+9= 84.



final value will become a=84 and b=75

Workspace


Tags:  nagarro

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option A

Explanation:

Here is no explanation for this answer

Workspace


Tags:  Wipro

27. What will be output of the following "c" code?

#include
void main()
{
100;
printf("%d",100);
}

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option B

Explanation:

100;  ...........there was no use of this 100. Its only to confuse the students.

printf("%d",100);  ...... its as simple as to print hello world.  hence 100 is printed.

Workspace


Tags:  No Tags on this question yet!

28.  What will be output of the following "c" code?

#include
void main()
{
int i=10;
i=!i>14;
printf("%d", i);
}

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option A

Explanation:

Here is no explanation for this answer

Workspace


Tags:  No Tags on this question yet!

29. What will be output of the following "c" code?

#include
void main ( )
{
int i;
for( i=0; i<10; i++,printf("%d", i));
}

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option D

Explanation:

Here is no explanation for this answer

Workspace


Tags:  No Tags on this question yet!

30. What will be output of the following "c" code?

#include
void main ( )
{
int a=500, b=100,c;
if( !(a>=400))
b=200;
c=200;
printf( "%d %d", b,c);
}

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option B

Explanation:

Here is no explanation for this answer

Workspace


Tags:  No Tags on this question yet!