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 do I check my C programming skills?
You can your programming by writing programs for scenario type questions and take skill test in techgig.com
Ramnarayanan
0 0
5
Write a programme to swap two numbers with out using a third variable and by using bitwise op-erators.
main(){ int a=5,b=10; printf("\r Before Swap"); printf("\r a=%d and b=%d",a,b); a^=b^=a^=b; printf("\r After Swap"); printf("\r a=%d and b=%d",a,b); return 0; }
Ranjeeth
Can the last case of a switch statement skip including the break?
Last case if a switch should be DEFAULT.. Good to have this case always. Executed only when there's no other matching cases found.
Sanjeev
If I want to learn Java, is it necessary to know about C language?
It is not necessary to know about C language if you want to learn Java. But some syntax are same.
Nitesh
0 0
7
Can an array be an lvalue?
When you say array, do you mean array name i.e. address, or array element. Yes, array element can be lvalue
Vinodha

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

Ask a Question

Related Lessons

C Program Sample Application
//Standard Library Functions(Header Files used) #include<stdio.h> #include <conio.h> //Main method int main() { // function for clearing screen clrscr(); // function to print the output...

C-Program Swapping Contents Of Variables Using Function [Call By Reference Method]
//Header Files #include#include // User defined functions swap with 2 pointer variables passed as an argument list void swap(int*i,int*j){ // Local variable temp int temp; // swapping contents using...

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

Introduction to Programming Languages
What is a Programming Language? A programming language is a formal computer language or constructed language designed to communicate instructions to a machine, particularly a computer. Programming languages...

Some interview questions and answers for fresher level on Pointers
What is a void pointer? Void pointer is a special type of pointer which can reference or point to any data type. This is why it is also called as Generic Pointer. As a void pointer can point to...

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