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

If I want to learn Java, is it necessary to know about C language?
Obviously it is not necessary, though both languages share a lot of similar syntax. If you know any other language then you will probably get advantage to learn Java. If not, then also its fine. You can start a fresh with Java.
Nitesh
0 0
7
Can a file other than a .h file be included with #include?
Yes. user defined header file ex:#include "nim.c"
Pankaj
0 0
7
How do you print an address?
int main(){ int a=5; printf("Address of variable a is: %d",&a); return 0; }
Prakash
2 0
6
How and where do I start learning C programming?
C language is the basic of the programming to learn the basic of programming we learn the c language
Gaurav
0 0
7
What is the meaning of \n and \t in C language?
is new line and \t is for tab
Priya
0 0
5

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

Ask a Question

Related Lessons

Dynamic Memory Allocation in C using malloc()
#include <stdio.h>#include <conio.h>//#include <malloc.h> OR#include <stdlib.h>void main(){ int *ptr, i, n, sum = 0; printf("how many elements ? "); scanf("%d", &n);...

Tress And Its Traversal
Depth First Traversals:(a) Inorder (Left, Root, Right) : 4 2 5 1 3(b) Preorder (Root, Left, Right) : 1 2 4 5 3(c) Postorder (Left, Right, Root) : 4 5 2 3 1 Trees are one of the data structures like...

All About Programming And A Good Programmer.
Hi, This is my first lesson for you guys. Hope you enjoy reading it. In recent community questions, I found many people wanted to be good programmers, or wanted to have good hands on certain language,...

Pro learners tip for C language
First get the concept of algorithm before heading to write your first program.

C Program-Infinite Loop[For] Demo
//Header Files #include<stdio.h>#include<conio.h> //Main function void main(){ //Function for clearing screen clrscr(); //Infinite for loop for(;;) { printf("Hello!"); } //Function for...

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