MCQOPTIONS
Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Testing Subject
General Aptitude
Logical and Verbal Reasoning
English Skills Ability
Technical Programming
Current Affairs
General Knowledge
Finance & Accounting
GATE (Mechanical Engineering)
Chemical Engineering
→
Declarations and Initializations
→
General
→
Is the following statement a declaration or defini...
1.
Is the following statement a declaration or definition? extern int i;
A.
Declaration
B.
Definition
C.
Function
D.
Error
Answer» B. Definition
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
Which keyword is used to prevent any changes in the variable within a C program?
Which of the following declaration is illegal?
Which of the following format identifier can never be used for the variable var? int main() { char *var = "Advanced Training in C by AllIndiaExams.com"; }
Does this compile without error? int main() { for (int k = 0; k < 10> return 0; }
Does this compile without error? int main() { int k; { int k; for (k = 0; k < 10> } }
Which of the following declaration is not supported by C?
Is the following statement a declaration or definition? extern int i;
A variable declared in a function can be used in main?
Is there any difference in the following declarations? int myfun(int arr[]); int myfun(arr[20]);
Suppose a program is divided into three files f1, f2 and f3, and a variable is defined in the file f1 but used in files f2 and f3. In such a case would we need the extern declaration for the variables in the files f2 and f3?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies