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

Answer Posted / anurag aggarwal

after declaring the header files declare the global
variables to be used that is the best way.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who developed c language?

644


What are the basic data types associated with c?

820


how many key words availabel in c a) 28 b) 31 c) 32

636


State two uses of pointers in C?

642


what is the different bitween abap and abap-hr?

1745






Does c have circular shift operators?

734


How #define works?

624


What is the advantage of an array over individual variables?

747


What is the best way to comment out a section of code that contains comments?

786


pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

1865


What is the difference between #include and #include 'file' ?

610


How to delete a node from linked list w/o using collectons?

2093


What is difference between %d and %i in c?

698


Write a Program to accept different goods with the number, price and date of purchase and display them

5454


Is c call by value?

613