Answer Posted / sudarsan gouda
# is nothing but the preprocessor operator.That means it
will execute before the main() execution.
That means we are required to include that header file
those are required to our program before main(),
| Is This Answer Correct ? | 56 Yes | 4 No |
Post New Answer View All Answers
What's a good way to check for "close enough" floating-point equality?
Explain what are binary trees?
Explain what are its uses in c programming?
What is the need of structure in c?
Explain c preprocessor?
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
Why header files are used?
What is the heap?
Is there a way to compare two structure variables?
Where register variables are stored in c?
How do you declare a variable that will hold string values?
Is array name a pointer?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
Explain is it valid to address one element beyond the end of an array?