UrbanPro

Learn C Language from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Difference between "C structure" and "C++ structure".

Asked by Last Modified  

Follow 0
Answer

Please enter your answer

Home Tutor

C is process oriented programming.. so c follows procedure in execution where as C++ is object oriented and messages are been passes between the objects..
Comments

Tutor taking Computer subjects Classes

C is procedural language . c++ is object oriented .
Comments

Python and Unix Professional(10 years IT Exp)

1. Only variables of different data types can be declared, functions are not allowed 2. Direct access to data members is possible 3. ‘struct’ data type is not treated as built in type -- use of ‘struct’ necessary to declare objects 4. Member variables cannot be initialized inside a structure
Comments

Computer Science And Maths Tutor

It's true that C++ supports structures to remain backward compatible with C & provide easy migration path to C programmers. But there are still many differences between C struct & C++ struct. 1) C structure can't contain functions means only data members are allowed, but structure in C++ can have...
read more
It's true that C++ supports structures to remain backward compatible with C & provide easy migration path to C programmers. But there are still many differences between C struct & C++ struct. 1) C structure can't contain functions means only data members are allowed, but structure in C++ can have both functions & data members. 2) struct keyword is necessary in C to create structure type variable, but it is redundant & not necessary in C++. 3) Size of empty structure is undefined behavior in C, but it is always 1 in C++. 4) Structure in C can't have static members, but C++ structure can have static members. For example following program fails in compilation in C but compiles fine in C+ read less
Comments

A Passionate Teacher

Nothing, Thery are same concepts
Comments

C/C++ & UNIX Shell Scripting Programmer & Tutor

C++ structures are more of kind of class but not really class. The C Structures are classic structs. That means they contain only member variables. While in C++ structures can have member function as like a class the difference being default all member variables and functions are public while in class...
read more
C++ structures are more of kind of class but not really class. The C Structures are classic structs. That means they contain only member variables. While in C++ structures can have member function as like a class the difference being default all member variables and functions are public while in class are private. Well there are hardly anywhere we recently use C++ structures in replacement of a class. read less
Comments

1.5 years of experience in teaching IT and computer subjects to engineering, diploma and BSc students.

There are many differences between C struct & C++ struct, I will list few of them: 1) C structure can't contain functions means only data members are allowed, but structure in C++ can have both functions & data members. 2) Structure in C can't have static members, but C++ structure can have static...
Comments

C, C++ Trainer

In C structure only data can be defined whereas in C++ both data and functions can be added to structures. C++ structures can act as classes except that structure functions are always public.
Comments

Computer trainer

C++ is higher version of c with extra concept of object oriented programming
Comments

Tutor

Well C is the procedure oriented while the C++ is the objects oriented language.
Comments

View 15 more Answers

Related Questions

Which is older - Java or C?
C is older than JAVA
Baby
Which should I learn first, C or UNIX?
As you know C is a programming language and UNIX is Operating System if you want to grow your career as Programmer/Developer than go for C/C++ programming as it is very basic programming languages and...
Tushar
0 0
5
What is the difference between n=1 and n==1 in the C language?
'=' is ASSIGNMENT operator , where as '==' is COMPARISON operator. int a=7; assigns the variable a an integer value 7 , where as a==7; checks if the VALUE of a is EQUAL to 7.
Soujanya
0 0
8
Who founded the C language? Why?
The C programming language was developed by Dennis Ritchie at Bell Labs in the early 1970s. Ritchie, along with Ken Thompson, created C as an evolution of the B programming language, aiming to enhance...
Santosini
0 0
7
What are the main characteristics of c programming?
C programming is characterized by several key features that contribute to its popularity and versatility. Here are some of the main characteristics of the C programming language: Procedural Programming: ...
Balendra
0 0
6

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Why do pointers have a datatype?
Before we start with pointers you must know what is a variable and a datatype. int a; This is the basic line in every program in 'C' . It means that we are asking the compiler to give us 2 bytes of space...


C Program-Upper Case Demo
/*WAP to print the character entered by user in upper case*/ //Header files #include<stdio.h>#include<conio.h> //Main function void main(){ char ch; //Function for clearing screen clrscr(); ...

C, Cpp, Java, Python, Javascript Programming Languages
Learning C is as good as Learning a Natural Language(such as English, Hindi, Telugu, Tamil etc) We use Natural Languages to communicate with humans whereas we use Programming Languages such as C, Cpp,...
V

Vamshi

0 0
0

Necessity of Theory and Practical in Computer Science.
Upon studying a subject both theory and practical are important. Usually many schools concentrate more on theory and the marks not on the practical. Other and opposite kind of people prefer practical...

Recommended Articles

Brilliant Academy is one of the reputed institutes for B.Tech tuition classes. This institute is specialised in delivering quality tuition classes for B.E, Engineering - all streams and Engineering diploma courses. Incorporated in 2012, Brillant Academy is a brainchild of Mr Jagadeesh. The main motto of the academy is to...

Read full article >

Lasya Infotech is a Hyderabad based IT training institute founded in 2016 by O Venkat. Believing in his innovation, passion and persistence and with a diverse blend of experience, he started his brainchild to deliver exemplary professional courses to aspiring candidates by honing their skills. Ever since the institute envisions...

Read full article >

Business Process outsourcing (BPO) services can be considered as a kind of outsourcing which involves subletting of specific functions associated with any business to a third party service provider. BPO is usually administered as a cost-saving procedure for functions which an organization needs but does not rely upon to...

Read full article >

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Looking for C Language Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for C Language Classes?

The best tutors for C Language Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn C Language with the Best Tutors

The best Tutors for C Language Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more