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

What is the error in the given C language program?
There are three types of errors exist in C Programming: Syntax errors, Semantic errors and runtime errors.
Suresh
0 0
5
What is C language used for?
What is the C Language? The C language is a high-level, general-purpose programming language. It provides a straightforward, consistent, powerful interface for programming systems. That's why the C language...
Anil
0 0
5
How and where do I start learning C programming?
Goals Fundamental concepts of C programming language. Write your first C program. Understand different keywords & Data types in C. Understand Variables & Scope of Variables. Learn Enumeration or Enum...
Krishna
0 0
5
What is the most efficient way to store flag values?
A flag is a value used to make a decision between two or more options in the execution of a program. Efficiency in this case is a tradeoff between size and speed. The most memory-space efficient way to...
Deepak
0 0
6
What is the fee for learning C Language?
In C lang course ,there is not only basics it also having whole package to complete the task and course.cost may be it's depends upon the institute n teaching level
Sk.

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...

How to write shared library program using C Programming?
Library Name : hellofilename : hello.c#include void Hello(){ printf("Hello World .. How are you 1\n");}======================================Header File:hello.h#ifndef __HELLO_H#define __HELLO_Hvoid Hello(void);#endif===============================Application...

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...

Structures in C
A structure is a collection of one or more data members possibly of different data types, grouped together under a single name for convenient handling. Defining a Structure: In general terms,...

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