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 the diffrence between c# and c++
why we are declare the function in the abstract class even though we are declaring it in Derived class?
What is the main purpose of inheritance law?
What does it mean when someone says I oop?
What is Method overloading?
#include <iostream> using namespace std; struct wow { int x; }; int main() { wow a; wow *b; a.x = 22; b = &a; a.x = 23; cout << b->x; return 0; }
Can you explain polymorphism?
write string class as your own class in java without using any built-in function
What is encapsulation with real life example?
why we call c++ is object oriented lanaguage
What are the main differences between procedure oriented languages and object oriented languages?
9 Answers IBM, Infosys, Wipro,
what is the virtual function overhead, and what is it used for ? i hope i can get and appropriate answers, thanks a lot....