Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C Programming
»
Declarations and Initializations
What are the types of linkages?
Internal and External
External, Internal and None
External and None
Internal
Correct Answer:
External, Internal and None
Explanation:
External Linkage-> means global, non-static variables and functions.
Internal Linkage-> means static variables and functions with file scope.
None Linkage-> means Local variables.
← Previous Question
Next Question→
More Questions from
Declarations and Initializations
Identify which of the following are declarations 1 : extern int x; 2 : float square ( float x ) { ... } 3 : double pow(double, double);
By default a real number is treated as a
Which of the following special symbol allowed in a variable name?
What will be the output of the program in 16 bit platform (Turbo C under DOS)? #include
int main() { extern int i; i = 20; printf("%d\n", sizeof(i)); return 0; }
What is the output of the program given below? #include
int main() { enum status { pass, fail, atkt}; enum status stud1, stud2, stud3; stud1 = pass; stud2 = atkt; stud3 = fail; printf("%d, %d, %d\n", stud1, stud2, stud3); return 0; }
What is the output of the program? #include
int main() { extern int a; printf("%d\n", a); return 0; } int a=20;
What will be the output of the program? #include
int X=40; int main() { int X=20; printf("%d\n", X); return 0; }
What is the output of the program #include
int main() { extern int fun(float); int a; a = fun(3.14); printf("%d\n", a); return 0; } int fun(int aa) { return (int)++aa; }
In the following program how long will the for loop get executed? #include
int main() { int i=5; for(;scanf("%s", &i); printf("%d\n", i)); return 0; }
What is the output of the program #include
int main() { int a[5] = {2, 3}; printf("%d, %d, %d\n", a[2], a[3], a[4]); return 0; }
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments