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...


what is the main difference between c and c++?

Answers were Sorted based on User's Feedback



what is the main difference between c and c++?..

Answer / rohit singh

c++ is advance version of c.
In c security is less as compare of c++
In c progarm is difficult as compare to c++.

Is This Answer Correct ?    2 Yes 3 No

what is the main difference between c and c++?..

Answer / shubhangi

In C++ when any exception occurs it can be handled with the
help of exception handling mechanism while no such facility
available in c
exception execution eg.array out of bound,dividing a number
by zero.

Is This Answer Correct ?    0 Yes 1 No

what is the main difference between c and c++?..

Answer / gopi challuri

c is structured oriented language nd c++ is object oriented
language.
And one more main difference is in c++ v introduced Classes
and objects a new way after structures in c.
and in cpp v can code the program by divide and rule policy
but not in c and v hav to write everything in main and in
cpp v hae oops concept which can run the progran more
efficiently.
but main advantage of c is till now every one using c
language coding in operating systems like windows and in
linux\.
so for normal use cpp is best than c
but for he main coding purpose c in best /

Is This Answer Correct ?    0 Yes 1 No

what is the main difference between c and c++?..

Answer / sridivyapuvvada

C is object based language & C++ is object oriented
language.
C is top-bottom approach & C++ is bottom-top approach.
In C,we use PRINTF() ,SCANF() as standard input/output
functions & in C++,we can use COUT<< or CIN>> as standard
input/output function.
In C we are using #include<stdio.h> as header file, but
in C++ we are using #include<iostream.h> as header file.
C doesn't support operator overloading & C++ support
operator overloading.
C does not support the c++ programme but C++ support the C
program.

Is This Answer Correct ?    2 Yes 3 No

what is the main difference between c and c++?..

Answer / lalit

set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go

ALTER PROCEDURE [dbo].[sp_VIEWQUALIFICATIONINFO]
@StdId INT
AS
SELECT * FROM Qualification
WHERE StdId=@StdId
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go

ALTER PROCEDURE [dbo].[sp_VIEWPERSONALINFO]
@StdId INT
AS
SELECT
FName,MName,LName,FatherName,Gender,DOB,MStatus,Email,Phone,
Mobile,CourseID,Status FROM personalinfo
WHERE StdId=@StdId\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

protected void Button1_Click(object sender, EventArgs e)
{
ds = objd1.GetDetailsById(Convert.ToInt32
(txtstudentid.Text));
ds =objd1.GetPersonalInfoById(Convert.ToInt32
(txtstudentid.Text));
grdqualificationinfo.DataSource=ds.Tables
["Qualification"];
grdqualificationinfo.DataBind();
grdpersonalinfo.DataSource=ds.Tables
["personalinfo"];
grdpersonalinfo.DataBind();
lblqualinfo.Visible = true;
lblpersonalinfo.Visible = true;
//objrd = objd1.GetDetailsById(Convert.ToInt32
(txtstudentid.Text));
//objrd.Read();


//txtcoursename.Text = objrd[0].ToString();
//txtcoursefees.Text = objrd[1].ToString();

lblcoursefees.Visible = true;
lblcoursename.Visible = true;
txtcoursename.Visible = true;
txtcoursefees.Visible = true;


}
//////////////////////////////////////////
class////////////////////////

public DataSet GetPersonalInfoById(int StdId)
{
con.Close();
con.Open();
cmd = new SqlCommand("sp_VIEWPERSONALINFO", con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@StdId",StdId);
adap = new SqlDataAdapter(cmd);
adap.Fill(ds, "personalinfo");
return ds;
}

public DataSet GetDetailsById(int StdId)
{
con.Close();
con.Open();
cmd = new SqlCommand("sp_VIEWQUALIFICATIONINFO",
con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("StdId",StdId);
adap = new SqlDataAdapter(cmd);
adap.Fill(ds, "Qualification");
return ds;
}

Is This Answer Correct ?    2 Yes 3 No

what is the main difference between c and c++?..

Answer / balaji

header file in c is <iostream.h> and in c++ it is <stdio.h>
input in c is cin>> and in c++ it is scanf

Is This Answer Correct ?    2 Yes 3 No

what is the main difference between c and c++?..

Answer / madhav

in c we use ()type of brackets but in c++ we use angular
brackets for input and standered output functions

Is This Answer Correct ?    2 Yes 3 No

what is the main difference between c and c++?..

Answer / balakrishna

c is a procedure oriented program.where as c++ is a object
oriented program.c++ is advanced of c.some draw backs in c
are rectified and introduced in c++.in c++ we use mostly
classes.in c the variables are used in program are used by
any function in the program so there is no security in
c.where as in c++ our data is secured by declaring private.

Is This Answer Correct ?    1 Yes 2 No

what is the main difference between c and c++?..

Answer / hahaha

The main difference is In C and C++ is ++ is not there in
C.HAhAhhahaha..

Is This Answer Correct ?    2 Yes 3 No

what is the main difference between c and c++?..

Answer / pooja

c is a procedure oriented language
c++ is a structure oriented language

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More OOPS Interview Questions

Name an advantage of linked list over array?

11 Answers   IBM, Infosys,


Can we define a class within the interface?

0 Answers  


What is interface? When and where is it used?

0 Answers  


Finding of the 4 larger (bigger) numbers from the list like{1245,4587,2145,1163,29987,65783.....}

1 Answers   Wipro,


What is destructor example?

0 Answers  


what is a ststic variable and stiticfunction briefly explain with exmple and in which case we use

2 Answers   HCL,


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

0 Answers  


what is the use of mutable key word

3 Answers   HCL,


Should you protect the global data in threads? Why or why not?

2 Answers   IBM,


Why is abstraction used?

0 Answers  


What is function overloading?,describe it with the example.

5 Answers  


The IT giant Tirnop has recently crossed a head count of 150000 and earnings of $7 billion. As one of the forerunners in the technology front, Tirnop continues to lead the way in products and services in India. At Tirnop, all programmers are equal in every respect. They receive identical salaries and also write code at the same rate. Suppose 14 such programmers take 14 minutes to write 14 lines of code in total. How long will in take 5 programmers to write 5 lines of code in total ?

6 Answers   TCS,


Categories