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

What is the total generic pointer type?

939


What is memcpy() function?

876


What is dynamic memory allocation?

1088


What is use of integral promotions in c?

900


What is the difference between array_name and &array_name?

1010


In a byte, what is the maximum decimal number that you can accommodate?

921


What is clrscr ()?

898


Explain how do you print an address?

928


What is nested structure in c?

831


What is "Hungarian Notation"?

858


What are the 4 data types?

800


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?

2213


how many errors in c explain deply

1859


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

890


Can a variable be both constant and volatile?

850