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
Can U write a C-program to print the size of a data type without using the sizeof() operator? Explain how it works inside ?
i=20,k=0; for(j=1;j<i;j=1+4*(i/j)) { k+=j<10?4:3; } printf("%d", k);
#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?
Explain about the constants which help in debugging?
Write a program to print "hello world" without using a semicolon?
Explain what does a function declared as pascal do differently?
What are the preprocessors?
How can you determine the maximum value that a numeric variable can hold?
Write code for atoi(x) where x is hexadecimal string.
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
What is the meaning of && in c?