Discuss the function of conditional operator, size of operator and comma operator with examples.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

Can U write a C-program to print the size of a data type without using the sizeof() operator? Explain how it works inside ?

3 Answers   HCL, TCS,


i=20,k=0; for(j=1;j<i;j=1+4*(i/j)) { k+=j<10?4:3; } printf("%d", k);

8 Answers   HCL,


#include<stdio.h> int main() { int i=0,j=1,k=2,m,n=0; m=i++&&j++&&k++||n++; printf("%d,%d,%d,%d,%d",i,j,k,m,n); }

12 Answers   Capital IQ, Sasken,


In C language, a variable name cannot contain?

0 Answers  


Explain about the constants which help in debugging?

0 Answers  






Write a program to print "hello world" without using a semicolon?

0 Answers  


Explain what does a function declared as pascal do differently?

0 Answers  


What are the preprocessors?

9 Answers   HP,


How can you determine the maximum value that a numeric variable can hold?

0 Answers  


Write code for atoi(x) where x is hexadecimal string.

5 Answers   Adobe,


Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80

0 Answers  


What is the meaning of && in c?

0 Answers  


Categories