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
Explain the difference between null pointer and void pointer.
Which header file should you include if you are to develop a function which can accept variable number of arguments?
Can you think of a logic behind the game minesweeper.
What is the difference between functions abs() and fabs()?
Why c is known as a mother language?
What is file in c preprocessor?
Write a progarm to find the length of string using switch case?
Why we use stdio h in c?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
What is wrong in this statement? scanf(“%d”,whatnumber);
What is strcpy() function?
Why c language?
What is the difference between ‘g’ and “g” in C?
How to set file pointer to beginning c?
How do you do dynamic memory allocation in C applications?