What is default value of global variable in c?



What is default value of global variable in c?..

Answer / Dinesh Pal Singh

The default value of a global integer variable in C is 0 and for a global character variable, it is ''.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Every time i run a c-code in editor, getting some runtime error and editor is disposing, even after reinstalling the software what may be the problem?

2 Answers  


Write a C/C++ program that connects to a MySQL server and displays the global TIMEZONE.

0 Answers  


How to avoid buffer overflow?

1 Answers  


can u give me the good and very optimised code for a car racing game?

0 Answers  


How to reverse a linked list

1 Answers   Aricent, Fidelity, IBM, TCS,


plz answer.... write a program that reads line (using getline) e.g."345", converts each line to an integer using "atoi" and computes the average of all the numbers read. also compute the standard deviation.

1 Answers  


How to add two numbers without using semicolon at runtime

2 Answers  


which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above

1 Answers  


how to implement stack work as a queue?

2 Answers  


marge linklist

0 Answers   HCL,


What is structure padding & expalain wid example what is bit wise structure?

1 Answers  


Find Index of least significant bit set in an Integer. ex. int value is say 10001000 results should be 4.

1 Answers  


Categories