in one file global variable int i; is declared as static. In
another file it is extern int i=100;
Is this valid ?
Answer Posted / vadivel t
No. it is not valid,
Bcos we can not initialise a variable with an extern key
word.ie.,
The statement extern int i = 100; is wrong.
Is This Answer Correct ? | 14 Yes | 5 No |
Post New Answer View All Answers
What is size of union in c?
Why do we use int main?
What is an auto variable in c?
What is the difference between formatted&unformatted i/o functions?
Describe the header file and its usage in c programming?
What is header file in c?
List the difference between a "copy constructor" and a "assignment operator"?
What are the advantages and disadvantages of c language?
What functions are in conio h?
What is ambagious result in C? explain with an example.
Why is c used in embedded systems?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
What is difference between Structure and Unions?
What is the difference between array and pointer?
Why calloc is better than malloc?