Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

difference between c and c++?

Answer Posted / radha garg

hi,
for more understanding see this program

for adding two no.

#include<stdio.h>................#include<iostream.h>
#include<conio.h> . #include<conio.h>
void main() . void main()
{ . {
int a,b,c; . int a,b;
printf("enter 2 no."); . cout<<"enter two number";
scanf("%d%d",&a,&b); . cin>>a>>b;
c=a+b; . int c=a+b;
printf("sum is=%d"c); . cout<<"sum is="<<c;
getch(); . getch
(); .
} . }

so from above we know that in c variables are declared in
above bt in case of C++ variable declaration can be
anywhere .whenever we need we declare variables

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;

2052


Is c# written in c++?

1032


Do inline functions improve performance?

1134


Why is c++ not purely object oriented?

1063


Why are pointers used?

1051


Write is a binary search tree? Write an algo and tell complexity?

1072


What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random

1190


How static variables and local variablesare similar and dissimilar?

1095


What is the default width for ouputting a long integer using the insertion operator?

1299


Which bit wise operator is suitable for putting on a particular bit in a number?

1259


Why is swift so fast?

1178


What is the operator in c++?

1177


What do you mean by a template?

1115


What is the use of dot in c++?

1129


Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?

1326