C Programming - Declarations and Initializations - Discussion
Discussion Forum : Declarations and Initializations - General Questions (Q.No. 2)
2.
What are the types of linkages?
Answer: Option
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.
Internal Linkage-> means static variables and functions with file scope.
None Linkage-> means Local variables.
Discussion:
95 comments Page 1 of 10.
Manoj mehra said:
5 years ago
In programming languages, particularly the compiled ones like C, C++, and D, linkage describes how names can or can not refer to the same entity throughout the whole program or one single translation unit. The static keyword is used in C to restrict the visibility of a function or variable to its translation unit.
(8)
Nali srikanth said:
6 years ago
Static variable is a fixed.
Non static variable can be changed.
None linkage means local variable.
Non static variable can be changed.
None linkage means local variable.
(6)
Sudhanshu Kumar said:
7 years ago
Please tell definition of linkages.
(4)
Sreenu said:
7 years ago
What is meant by linkages?
Neha said:
7 years ago
What is linkages?
(2)
Vineethreddy said:
7 years ago
Pre increment - increment the value and then use it.
Post increment - use the value and then increment.
Post increment - use the value and then increment.
Prabhat said:
7 years ago
Pre-increment and post-increment behaviour depends on the compiler's implementation of it.
Each compiler can give you the different result for the same operation with respect to pre and post increment and decrement. As there is no standard behaviour defined by ANSI C standard.
We shouldn't use these two operators in an expression.
Each compiler can give you the different result for the same operation with respect to pre and post increment and decrement. As there is no standard behaviour defined by ANSI C standard.
We shouldn't use these two operators in an expression.
Sagar Prakash pakhale said:
7 years ago
Pre-increment - increment the value and then use it.
Post-increment - use the value and then increment.
Post-increment - use the value and then increment.
Lavanya said:
8 years ago
Can anyone tell me the difference between static and non-static variables? and also about linkages.
Keerthana said:
8 years ago
Pre increment - increment the value and then use it.
Post increment - use the value and then increment.
Post increment - use the value and then increment.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers