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

How many programs are in the C language?
Here, we have provided 100+ C programming examples in different categories like basic C Programs, Fibonacci series in C, String, Array, Base Conversion, Pattern Printing, Pointers, etc.
Muskan
0 0
6
Which websites are best to learn C programming?
There are several reputable websites where you can learn C programming. Here are some popular ones: GeeksforGeeks (geeksforgeeks.org): Offers a wide range of tutorials, practice problems, and articles...
Sarath Chandra
0 0
5
Which is the best book for understanding concepts of c language?
There are several good books for learning C programming. Here are a few highly recommended ones: "C Programming Absolute Beginner's Guide" by Perry and Miller: A great choice for absolute beginners,...
Chetana
0 0
6
What is the concatenation operator?
In many programming languages, string concatenation is a binary infix operator. The + (plus) operator is often overloaded to denote concatenation for string arguments: "Hello, " + "World" has the value...
R.s.praveen

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

Ask a Question

Related Lessons

Basics Of C And C++
C++ is powerful, highly flexible, and adaptable programming language that allows software engineers to organise and process information quickly and effectively. But this high-level language is relatively...

C Program-Temperature [conversion from farenheit to degree celsius]
//WAP to convert temperture from farenheit into degree celsius //Header files#include<stdio.h>#include<conio.h> //Main functrion void main(){ //Variable declaration of type float float...

Why Indexing Should Start From Zero In Array ?
Why numbering should start at zero? To denote the subsequence of natural numbers 2, 3, ..., 12 without the pernicious three dots, fourconventions are open to usa) 2 ≤ i < 13b) 1 < i ≤ 12c)...

What is a Programming Language
What is a Language? Language is a communication system of human. What is a programming Language? A programming Language is a formal constructed language design to communicate...

C Program-The Odd Loop Demo
/* WAP to print square value of the number entered by user using odd loop*/ //Header Files #include<stdio.h>#include<conio.h> //Main Function void main(){ char another='y'; int num,sq; //...

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