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


Please Help Members By Posting Answers For Below Questions

Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

1764


What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }

700


How can I do peek and poke in c?

621


write a programming in c to find the sum of all elements in an array through function.

1708


Explain how do you view the path?

657






Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.

1597


What is c++ used for today?

669


Is there a way to jump out of a function or functions?

636


How can I delete a file?

630


Explain how can a program be made to print the line number where an error occurs?

694


What are the advantages of Macro over function?

1207


What is C language ?

1530


What does calloc stand for?

651


Explain what is the heap?

624


In a switch statement, what will happen if a break statement is omitted?

604