in one file global variable int i; is declared as static. In
another file it is extern int i=100;
Is this valid ?
Answers were Sorted based on User's Feedback
Answer / phani
No its invalid.A variable declared as static cannot be
changed though it is a global variable.
Is This Answer Correct ? | 20 Yes | 3 No |
Answer / anil
variable/function defined static make the scope limited to
only the file in which it is defined and cannot be accessed
outside the file. Hence it is invalid
Is This Answer Correct ? | 6 Yes | 0 No |
what is pointer?
13 Answers HCL, TCS,
Write a program to remove the C comments(/* */) and C++ comments(//) from a file. The file should be declared in command line.
How do you construct an increment statement or decrement statement in C?
Write a program to enter the name and age. If age>28 then find salary categories. if age<28 then find that you are gaduate or not.
What's wrong with "char *p = malloc(10);" ?
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
wat are the two methods for swapping two numbers without using temp variable??
Differentiate between Macro and ordinary definition.
Tell me when is a void pointer used?
What is logical error?
write a program to copy the string using switch case?
Write a C function to search a number in the given list of numbers. donot use printf and scanf