Sponsored Links


Results 1 to 2 of 2

Thread: CS201 Introduction to Programming GDB No.1 Solution Fall Semester 2013

  1. #1
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578

    18 CS201 Introduction to Programming GDB No.1 Solution Fall Semester 2013

    Sponsored Links1




    Sponsored Links




    CS201 Introduction to Programming GDB No.1 Solution Fall Semester 2013



    Dear Students,

    Below is the topic for GDB.You are required to submit your discussion in the mentioned time and duration. Please make sure that your reply should be precise and to the point.
    GDB will remain open for two consecutive days (48 hours). For this you have choice to post your comments from 30th January to 31st January, 2013.


    Topic is as follows:
    How C++ can play an important role as a base language in order to understand the modern programming languages such as C#, Java, J# etc?

  2. #2
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578

    Idea Solution

    What is the deference b/w C++ and C#.........????

    C++, as the name suggests, is a superset of C. As a matter of fact, C++ can run most of C code while C cannot run C++ code. Here are the 10 major differences between C++ & C…

    1. C follows the procedural programming paradigm while C++ is a multi-paradigmlanguage(procedural as well as object oriented)

    In case of C, importance is given to the steps or procedure of the program while C++ focuses on the data rather than the process.
    Also, it is easier to implement/edit the code in case of C++ for the same reason.

    2. In case of C, the data is not secured while the data is secured(hidden) in C++

    This difference is due to specific OOP features like Data Hiding which are not present in C.

    3. C is a low-level language while C++ is a middle-level language (Relatively, Please see the discussion at the end of the post)

    C is regarded as a low-level language(difficult interpretation & less user friendly) while C++ has features of both low-level(concentration on whats going on in the machine hardware) & high-level languages(concentration on the program itself) & hence is regarded as a middle-level language.

    4. C uses the top-down approach while C++ uses the bottom-up approach

    In case of C, the program is formulated step by step, each step is processed into detail while in C++, the base elements are first formulated which then are linked together to give rise to larger systems.

    5. C is function-driven while C++ is object-driven

    Functions are the building blocks of a C program while objects are building blocks of a C++ program.

    6. C++ supports function overloading while C does not

    Overloading means two functions having the same name in the same program. This can be done only in C++ with the help of Polymorphism(an OOP feature)

    7. We can use functions inside structures in C++ but not in C.

    In case of C++, functions can be used inside a structure while structures cannot contain functions in C.

    8. The NAMESPACE feature in C++ is absent in case of C

    C++ uses NAMESPACE which avoid name collisions. For instance, two students enrolled in the same university cannot have the same roll number while two students in different universities might have the same roll number. The universities are two different namespace & hence contain the same roll number(identifier) but the same university(one namespace) cannot have two students with the same roll number(identifier)

    9. The standard input & output functions differ in the two languages

    C uses scanf & printf while C++ uses cin>> & cout as their respective input & output functions

    10. C++ allows the use of reference variables while C does not

    Reference variables allow two variable names to point to the same memory location. We cannot use these variables in C programming.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 07-13-2013, 07:07 PM
  2. Replies: 5
    Last Post: 05-17-2013, 02:55 AM
  3. Replies: 1
    Last Post: 04-27-2013, 03:02 PM
  4. CS201 Introduction to Programming Assignment No.3 Fall Semester 2013
    By Vuhelper in forum Assignments & Solutions
    Replies: 0
    Last Post: 01-12-2013, 04:08 PM
  5. Replies: 63
    Last Post: 01-12-2011, 02:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft