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

How much this course?
instead of checking the fee, its good to find a tutor with genuine experience & interest to teach....
Profile Photo
Subramani
What does the modulus operator do?
It provides you the remainder of an integer value.
Profile Photo
Sumit
How do you override a defined macro?
We can use the #ifdef and #undef directive to undefine a previously defined macro.
Profile Photo
Sharmistha
What is the use of header files in C language?
In C language, header files are used to organize and reuse code efficiently 6 Key uses of header files in C language are :1. Function declarations (Prototypes)2. Macro Definitions3. Type Definitions4....
Profile Photo
Sachanth
0 0
View Comments7
How do I write a C program to print the total number of a single-digit prime number using a loop?
Single Digit prime number means number from 0 to 10 which are prime. so write for loop which will iterate from 0 to 10 as the value of i your i is nothing but the number pass the value of i to function...
Profile Photo
Momin
0 0
View Comments7

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

Ask a Question

Related Lessons

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

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)...
Profile Photo

What is Safety-Critical Software?
A software whose failure may cause death or injuries to the users called Safety-Critical Software.The software present as part of Aeroplanes, or present in Rail as railway signalling software or Automotive...
Profile Photo

C Program-String Comparison
// WAP to compare strings entered by the user //Header files #include<stdio.h>#include<conio.h>#include<string.h> //Main function void main(){ char str1; char str2; int comp; //Function...
Profile Photo

C++ Program-Working with constant using #define preprocessor
//Header Files #include#include // using #define preprocessor for defining a constant#define len 10#define br 5#define rad 3#define NEWLINE '\n' //Main function void main(){ int area_r; float area_c; //Function...
Profile Photo

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