Learners Only

Showing posts with label reference. Show all posts
Showing posts with label reference. Show all posts

Friday, 18 November 2011

Predict the output or error(s) for the following:

void main()

{

int a, *pa, &ra;


pa = &a;


ra = a;


cout <<"a="<<a <<"*pa="<<*pa <<"ra"<<ra ;


}

Answer :

Compiler Error: 'ra',reference must be initialized


Explanation :
Read more »
Posted by Unknown at 16:16 3 comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: C++, Campus Preparation, Cpp, pointers, reference, Viva Voce
Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ▼  2013 (42)
    • ▼  March (1)
    • ►  February (21)
    • ►  January (20)
  • ►  2012 (94)
    • ►  December (6)
    • ►  November (7)
    • ►  October (10)
    • ►  August (2)
    • ►  May (2)
    • ►  March (11)
    • ►  February (29)
    • ►  January (27)
  • ►  2011 (189)
    • ►  December (23)
    • ►  November (76)
    • ►  October (80)
    • ►  September (10)

About Me

Unknown
View my complete profile
Simple theme. Powered by Blogger.