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

How to create struct variables?

689


What is the use of #include in c?

683


4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.

1844


Do you have any idea about the use of "auto" keyword?

747


if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.

4644






What is variables in c?

692


What is the value of c?

670


What is a protocol in c?

634


How can you determine the maximum value that a numeric variable can hold?

720


What tq means in chat?

702


What is hashing in c?

740


Explain how do you determine a file’s attributes?

693


Where are c variables stored in memory?

679


Can we access array using pointer in c language?

736


Write the test cases for checking a variable having value in range -10.0 to +10.0?

1936