How does an object pointer work in C++?

Asked by Last Modified  

Follow 2
Answer

Please enter your answer

C , c++ and embedded trainer

code block is application software do not give any error but turbo c++ give sometime bug(error).
Comments

C , c++ and embedded trainer

in data structure we can define user define data type like a int , char ,long etc . if we create project like a school management .In which we create person (employee(teacher, worker), student) and their name , address, age, qualification etc then structure is more better because in which we create...
read more
in data structure we can define user define data type like a int , char ,long etc . if we create project like a school management .In which we create person (employee(teacher, worker), student) and their name , address, age, qualification etc then structure is more better because in which we create user define one or more then data type variable(object in c++) and these variable has find particular address(different variable has different address) . these variable only effect on own data not another variable data because they have different address. struct student { char name[55]; int age; char address[55]; }; int main() { struct student s1,s2,s3; return 0; } in above programe s1,s2,s3 have different memory then we change in s1 then these effect only in s1 not s2 and s3. like a s1 we can assign value in s2 and s3 . in structure s1 , s2 and s3 have different memory. read less
Comments

Related Questions

Is it necessary to mention the header files in the C programming language?
It is absolutely necessary as without inclusion of the same to your program, will lead to the absence of library functions that are present in the header files, your program will have a syntax error.
Hari
Why is C programming language called C?
The C programming language is named "C" because it was developed as a successor to an earlier programming language called "B." B was created by Ken Thompson at Bell Labs in the early 1970s, primarily for...
Ashwini
0 0
6
Can a file other than a .h file be included with #include?
yes .h -- is just for our understanding that its header file, you are free to put any filename and extention.
Pankaj
0 0
7
Which is the best book for understanding concepts of c language?
One highly recommended book for understanding the concepts of the C language is "C Programming Absolute Beginner's Guide (3rd Edition)" by Perry and Miller. This book is well-suited for beginners and provides...
Chetana
0 0
7

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

Ask a Question

Related Lessons

Some Tricky Questions in C
Can you write two functions in which one executes before main function and other executes after the main function? #pragma startup #pragma exit Where, priority is optional integer value.For user priority...

Facts about C language
C programming language was developed in 1972 by Dennis Ritchie at AT&T Bell Labs. It was developed to overcome the problems of languages such as B, BPCL. It was developed to write the Unix operating...

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

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

Swapping variable contents using C
/* WAP to swap the content of variables using C*/ //Header files #include<stdio.h>#include<conio.h> //Main function void main(){ //Variable declaration of type integer int a,b,c; //function...

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 >

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

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