how can we Declare a variable in c without defining it.
Answer / manoj
By using EXTRN.
Example:
File 1:
int GlobalVariable; // implicit definition
void SomeFunction(); // function prototype
(declaration)
int main() {
GlobalVariable = 1;
SomeFunction();
return 0;
}
File 2:
extern int GlobalVariable; // explicit declaration
void SomeFunction() { // function header (definition)
++GlobalVariable;
}
| Is This Answer Correct ? | 6 Yes | 1 No |
every function has return the value?
please give me answer with details #include<stdio.h> main() { int i=1; i=(++i)*(++i)*(++i); printf("%d",i); getch(); }
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
WHOT IS CHAR?
sqrt(x+sqrt(x+sqrt(x+sqrt(x))))=2; Find the value of x?
Explain what is the difference between far and near ?
What is indirection? How many levels of pointers can you have?
Explain a pre-processor and its advantages.
write a program in c language for the multiplication of two matrices using pointers?
what do the 'c' and 'v' in argc and argv stand for?
What is a stream water?
When is a “switch” statement preferable over an “if” statement?