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

Answer Posted / guest

The best arrangement is to place each definition in some
relevant .c file, with an external declaration in a header file.

Is This Answer Correct ?    17 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does c value mean?

635


What are the preprocessor categories?

641


What functions are used in dynamic memory allocation in c?

600


Why is void main used?

625


What is void pointers in c?

596






how to find anagram without using string functions using only loops in c programming

2720


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

1524


Can two or more operators such as and be combined in a single line of program code?

813


Explain the difference between structs and unions in c?

580


write a progrmm in c language take user interface generate table using for loop?

1576


What are the main characteristics of c language describe the structure of ac program?

616


Can a variable be both constant and volatile?

564


How can you access memory located at a certain address?

670


Describe the steps to insert data into a singly linked list.

627


What is #include in c?

604