what is the main difference between c and c++?
Answers were Sorted based on User's Feedback
Answer / mukavi
c has no special symbol but c++ have a 2 special symbol is + +.
| Is This Answer Correct ? | 0 Yes | 3 No |
Answer / hasrs
//Populate Student data according to search criteria
protected void btnSearchStudent_Click(object sender,
EventArgs e)
{
string Minqual;
// btnSearchStudent.Attributes.Add
("OnClick","PopupOnView.aspx?namee="+
ds.Reset();
Minqual = objDAL.getMinQual
(DropDownListCourse.SelectedItem.Text);
ds = objDAL.PopulateStudent(Minqual,
DropDownListCourse.SelectedItem.Value, int.Parse
(txtMinQual.Text), int.Parse(txtMaxQual.Text));
GridView2.DataSource = ds.Tables[0];
GridView2.DataBind();
}
****************************************************
//Method will get Minimum Qualification for applied
course
public String getMinQual(string coursename)
{
conn.Close();
conn.Open();
sqlcmd = new SqlCommand("SP_ADMIN_FUNCTION", conn);
sqlcmd.CommandType = CommandType.StoredProcedure;
sqlcmd.Parameters.AddWithValue
("@CALLTYPE", "GETMIN");
sqlcmd.Parameters.AddWithValue
("@COURSE_NAME",coursename );
//DR = new SqlDataReader();
DR = sqlcmd.ExecuteReader();
if (DR.Read())
return DR.GetString(0).ToString();
else
return null;
}
//Method will filter student and populate it according
to search criteria
public DataSet PopulateStudent(string MinQual,String
COURSEAPP,int min ,int max)
{
conn.Close();
conn.Open();
sqlcmd = new SqlCommand("SP_ADMIN_FUNCTION", conn);
sqlcmd.CommandType = CommandType.StoredProcedure;
sqlcmd.Parameters.AddWithValue
("@CALLTYPE", "POPULATE");
sqlcmd.Parameters.AddWithValue("@SELECTCOURSE",
COURSEAPP);
sqlcmd.Parameters.AddWithValue("@MIN_QUAL",
MinQual);
sqlcmd.Parameters.AddWithValue("@MIN", min);
sqlcmd.Parameters.AddWithValue("@MAX", max);
sqladap = new SqlDataAdapter();
sqladap.SelectCommand = sqlcmd;
sqladap.Fill(dataset);
return dataset;
}
| Is This Answer Correct ? | 1 Yes | 5 No |
Answer / hasrs
if(@CALLTYPE='GETMIN')
BEGIN
select MIN_QUALIFICATION from TABLE_COURSE STUDENT_DETAIL
WHERE (COURSE_NAME=@COURSE_NAME)
END
--================ Function for GETTING MIN QUALIFICATION
OF SELECTED COURSE ENDS==============================-------
---
--================ Function for POPULATING
STUDENT=================================================--
if(@CALLTYPE='POPULATE')
begin
select
S.STUDENT_ID,S.FIRST_NAME ,S.lAST_NAME ,S.CITY,S.USER_ID,
Q.CLASS,Q.PERCENTAGE from STUDENT_DETAIL S join
QUALIFICATION Q on S.STUDENT_ID=Q.STUDENT_ID WHERE (
S.COURSE_APP=@SELECTCOURSE AND Q.CLASS=@MIN_QUAL and
Q.PERCENTAGE between @MIN AND @MAX)
end
| Is This Answer Correct ? | 1 Yes | 5 No |
Answer / manasa
c is an object based language,n top to bottom approach,main
() has not return value, no overloading operations.
where as in c++,its an object oriented language,n bottom to
top approach,main() has a return value,overloading happens.
| Is This Answer Correct ? | 1 Yes | 6 No |
Answer / peddireddy
There is main difference between c and c++ i.e, we can
easily build programs by using objects in c++ but we can't
do like that in c.
| Is This Answer Correct ? | 7 Yes | 15 No |
Answer / chandrahas dhiraj, delhi
1) C is procedure oriented programming while C++ is object
oriented programming.....
2) C++ is C programming + inheritence + dynamic linking...
3) After the increment The C became C++...
| Is This Answer Correct ? | 17 Yes | 28 No |
Answer / vivek kumar
firstly c++ takes procedural aaproah from c language
for solving prob
and oops concept from other languages like ada,simula
so it is derived from c
c basically is functional programing
in this most of data is placed globally
c++ have bottom up approach and it support data hiding
so data is secured. from unauthorized access.
| Is This Answer Correct ? | 5 Yes | 16 No |
Answer / xyzqbc
i don't know the difference....ask some one else in your
family.....i know it is in marathi but i don't know how to
write.....
| Is This Answer Correct ? | 4 Yes | 19 No |
Answer / sunil
in 'c' editor mouse not work;
but
in c++ editor mouse work properly
| Is This Answer Correct ? | 21 Yes | 40 No |
What is this pointer in oop?
What is object in oops?
What is Agile methodology?
20 Answers ABC, Accenture, College School Exams Tests, Inmar, Microsoft, Sapient,
What is polymorphism and example?
is java purely oop Language?
49 Answers HCL, Infosys, TCS,
Difference ways of Polymorphism?
What is use of overloading?
Advantage and disadvantage of routing in telecom sector
Write pseudo code for push in a stack?
What is polymorphism in oops with example?
Can an interface inherit a class?
Which is the parameter that is added to every non-static member function when it is called?