What's the best way to declare and define global variables?

Answer Posted / s.madhavi

By using #define directive............

Is This Answer Correct ?    2 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c high or low level?

585


What is meant by preprocessor in c?

537


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

769


Write a code to remove duplicates in a string.

629


What is #include conio h?

596






Which header file is used for clrscr?

583


Is void a keyword in c?

578


What is the maximum no. of arguments that can be given in a command line in C.?

672


How will you declare an array of three function pointers where each function receives two ints and returns a float?

783


Why can’t constant values be used to define an array’s initial size?

837


Why enum is used in c?

525


Is it valid to address one element beyond the end of an array?

675


What are pointers? What are different types of pointers?

632


how can f be used for both float and double arguments in printf? Are not they different types?

610


What are the different types of objects used in c?

577