Home
Questions
Search
Forum
Contact
Guest Book
Polls!
Got a Question?
 
PREV
Programs
NEXT
 
(68 / 301) *
 
 



Is there something we can do in C but not in C++?




I have a really funny answer

Declare variable names that are keywords in C++ but not C.


#include <stdio.h>
int main(void)
{
  int old, new=3;
  return 0;
}


This will compile in C, but not in C++!


PREV
COMMENTS                                  INDEX                                  PRINT
NEXT



Last updated: November 3, 2005

www.cracktheinterview.com - Your destination for the most common IT interview questions, answers, frequently asked interview questions (FAQ), C Programs, C Datastructures for technical interviews conducted by the top IT companies around the world!