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

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

Answer Posted / lucky

#include<stdio.h>
#include<conio.h>
void main()
{
int class=0;
printf("5d",class);
getch();
}

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between functions getch() and getche().

812


What is chain pointer in c?

790


Explain the meaning of keyword 'extern' in a function declaration.

934


What is a function in c?

1201


What functions are used for dynamic memory allocation in c language?

868


Is there a way to compare two structure variables?

856


Explain spaghetti programming?

959


What is difference between static and global variable in c?

771


What are the types of data types and explain?

864


What is character constants?

908


What is volatile c?

779


What is scope and lifetime of a variable in c?

788


When should a far pointer be used?

804


Define circular linked list.

798


Why enum is used in c?

709