Lost Password?

  #1 (permalink)  
Old 03-20-2008, 05:31 AM
Chinmoy's Avatar   
Chinmoy Chinmoy is offline
Programming Professional
 
Join Date: Feb 2008
Location: where heaven meets earth
Posts: 301
Rep Power: 5
Chinmoy has a spectacular aura aboutChinmoy has a spectacular aura about
Default Difference between c and c++

1. C does not have any classes or objects. It is procedure and function driven. There is no concept of access through objects and structures are the only place where there is a access through a compacted variable. c++ is object oriented.

2. C structures have a diferent behaviour compared to c++ structures. Structures in c do not accept functions as their parts.

3. C input/output is based on library and the prcesses are carried out by including functions. C++ i/o is made through console commands cin and cout.

4. C functions do not support overloading. Operator overloading is a process in which the same function has two or more different behaviours based on the data input by the user.

5. C does not support new or delete commands. The memory operations to free or alllocate memory in c are carried out by malloc() and free().

6. Undeclared functions in c++ are not allowed. The function has to have a prototype defined before the main() before use in c++ although in c the functions can be declared at the point of use.

7. After declaring structures and enumerators in c we cannot declare the variable for the structure right after the end of the structure as in c++.

8. For an int main() in c++ we may not write a return statement but the return is mandatory in c if we are using int main().

9. In C++ identifiers are not allowed to contain two or more consecutive underscores in any position. C identifiers cannot start with two or more consecutive underscores, but may contain them in other positions.

10. C has a top down approch whereas c++ has a bottom up approach.

11. in c a character constant is automatically elevated to and integer whereas in c++ this is not the case.

12. In c declaring the global variable several times is allowed but this is not allowed in c++.
__________________
God is real... unless declared an integer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 04-07-2008, 03:14 PM
Xav's Avatar   
Xav Xav is offline
Guru
 
Join Date: Mar 2008
Location: London, England
Posts: 2,969
Last Blog:
Piano Exam
Rep Power: 25
Xav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to all
Send a message via MSN to Xav
Default Re: Difference between c and c++

Love the signature, dude.
__________________
Xav, the power of youth
Worship the Creator... not his creations
Web Site | Beta Site
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 10:50 AM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Mod
 
Join Date: Jul 2006
Age: 35
Posts: 1,751
Last Blog:
Game software (GURPS)
Rep Power: 24
WingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to all
Default Re: Difference between c and c++

Every time I see his signature, my math background kicks in: the integers are a subset of the reals, therefor declaring God an integer doesn't make him not real.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-08-2008, 01:16 PM
Xav's Avatar   
Xav Xav is offline
Guru
 
Join Date: Mar 2008
Location: London, England
Posts: 2,969
Last Blog:
Piano Exam
Rep Power: 25
Xav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to all
Send a message via MSN to Xav
Default Re: Difference between c and c++

Do you believe in God?
__________________
Xav, the power of youth
Worship the Creator... not his creations
Web Site | Beta Site
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-09-2008, 12:40 PM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Mod
 
Join Date: Jul 2006
Age: 35
Posts: 1,751
Last Blog:
Game software (GURPS)
Rep Power: 24
WingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to all
Default Re: Difference between c and c++

Quote:
Originally Posted by Xav View Post
Do you believe in God?
Yes, and Jesus as described in the New Testament of the Bible.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 04-09-2008, 02:48 PM
Xav's Avatar   
Xav Xav is offline
Guru
 
Join Date: Mar 2008
Location: London, England
Posts: 2,969
Last Blog:
Piano Exam
Rep Power: 25
Xav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to all
Send a message via MSN to Xav
Default Re: Difference between c and c++

Cool. Sorry if I'm being too inquisitive.
__________________
Xav, the power of youth
Worship the Creator... not his creations
Web Site | Beta Site
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 05-19-2008, 11:22 AM
qiFhaM qiFhaM is offline
Newbie
 
Join Date: May 2008
Posts: 2
Rep Power: 0
qiFhaM is on a distinguished road
Default Re: Difference between c and c++

Hi all... Im just newbie wan to learn this programming... But Im not sure which one is better for a newbie... Hope u all can help me...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 05-20-2008, 02:29 PM
Xav's Avatar   
Xav Xav is offline
Guru
 
Join Date: Mar 2008
Location: London, England
Posts: 2,969
Last Blog:
Piano Exam
Rep Power: 25
Xav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to all
Send a message via MSN to Xav
Default Re: Difference between c and c++

Welcome to CodeCall! Actually, neither of them is better for a newbie. I suggest learning Visual Basic - there's an excellent book called Sams' Teach Yourself Visual Basic 2005 in 24 Hours. It's not a day job, but it makes things as simple as possible.
__________________
Xav, the power of youth
Worship the Creator... not his creations
Web Site | Beta Site
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 05-26-2008, 07:33 AM
qiFhaM qiFhaM is offline
Newbie
 
Join Date: May 2008
Posts: 2
Rep Power: 0
qiFhaM is on a distinguished road
Default Re: Difference between c and c++

thx Xav...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 05-26-2008, 11:45 AM
Xav's Avatar   
Xav Xav is offline
Guru
 
Join Date: Mar 2008
Location: London, England
Posts: 2,969
Last Blog:
Piano Exam
Rep Power: 25
Xav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to all
Send a message via MSN to Xav
Default Re: Difference between c and c++

You're welcome.
__________________
Xav, the power of youth
Worship the Creator... not his creations
Web Site | Beta Site
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference b/w c,c++ and c#? devilsmaster C and C++ 2 01-13-2008 07:33 AM
J-components and teir counterparts, Whats the difference gszauer Java Help 2 12-21-2007 09:42 PM
What is the difference between the ds3 re Nefrit Computer Hardware 0 12-14-2007 06:47 AM
Whats the difference between... clankman HTML Programming 10 09-11-2007 07:34 AM
What's the difference between dif programming language? Masterguns The Lounge 4 08-27-2007 11:10 AM


All times are GMT -5. The time now is 03:17 PM.

Contest Stats

John ........ 87.50000
dargueta ........ 75.00000
Xav ........ 50.00000
MeTh0Dz ........ 20.00000
gaylo565 ........ 18.00000
Johnnyboy ........ 3.00000

Contest Rules

Ads