नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'identifier' : references must be initialized
Remarks
You must initialize a reference when it was declared, unless it is declared already:
With the keyword extern.
As a member of a class, structure, or union (and it is initialized in the constructor).
As a parameter in a function declaration or definition.
As the return type of a function.
Example
The following example generates C2530:
// C2530.cpp
int main() {
int i = 0;
int &j; // C2530
int &k = i; // OK
}