1.what are local and global variables?
2.what is the scope of static variables?
3.what is the difference between static and global variables?
4.what are volatile variables?
5.what is the use of 'auto' keyword?
6.how do we make a global variable accessible across files?
Explain the extern keyword?
7.what is a function prototype?
8.what does keyword 'extern' mean in a function declaration?
Answer Posted / rajan
Explain the out put
#include<stdio.h>
extern int i;
main()
{
printf("%d",i);
}
#include<stdio.h>
extern int i;
main()
{
printf("%d",i);
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are dangling pointers in c?
What kind of structure is a house?
while initialization of array why we use a[][2] why not a[2][]...?
What is wrong in this statement? scanf(“%d”,whatnumber);
Why C language is a procedural language?
Can include files be nested? How many levels deep can include files be nested?
How do you override a defined macro?
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
What are external variables in c?
What is 1f in c?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
What are structure types in C?
What is header file in c?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.