GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Placement Papers  >  L&T infotech

 Print  |  
Question:  eg.for a program that can be done in C but not in C++?



August 08, 2007 07:09:47 #6
 s.prabhat   Member Since: Visitor    Total Comments: N/A 

RE: eg.for a program that can be done in C but not in ...
 
its very simple to answer


eg:---
   

   main()
  {
          int class,y;
          class=8;
          y=class++;
          printf("%d",y);
          getch();

  }

 u can't run this program in c++ because  class is a keyword so it'll give the error
     

 

Back To Question