What's the best way to declare and define global variables?
Answer Posted / karnik ankit
the best way to declare and define global variables after
the header files or before the main function.
| Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
What are the differences between new and malloc in C?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
What is enumerated data type in c?
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
how to print the character with maximum occurence and print that number of occurence too in a string given ?
Apart from dennis ritchie who the other person who contributed in design of c language.
How do you define structure?
I have seen function declarations that look like this
What is assert and when would I use it?
Why c is known as a mother language?
What are the types of operators in c?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
What is main () in c?
Explain what is the general form of a c program?
What is a structure in c language. how to initialise a structure in c?