UrbanPro

Take MCA Coaching from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

how are the char, integer or float variables stores in memory struct{ int a; char b; int c; char d}; struct { int a; int b; char c; char d}; if we are making the variable of both structure and when I find the size of both member we get different while both have same data member, can you understand me ?

Asked by Last Modified  

Follow 0
Answer

Please enter your answer

MS SQL SERVER DBA Trainer

Data is stored in a computer's memory. The memory system comprises of uniquely numbered cells called memory addresses. We need to know the address where something is stored in order to retrieve it and work on it. A programming language frees us from keeping track of these memory addresses by substituting...
read more
Data is stored in a computer's memory. The memory system comprises of uniquely numbered cells called memory addresses. We need to know the address where something is stored in order to retrieve it and work on it. A programming language frees us from keeping track of these memory addresses by substituting names for them. These names are called variables. Variables are descriptive names for the memory addresses. read less
Comments

B Pharm,M.S.

A stucture stores different datatypes of members in different addresses V/S union , there is an option in linker where you can set even and odd addressing scheme and default type of declaration i.e unsiged and signed ...this could make a difference
Comments

International Corporate Trainer For dotnet Core ,Angular 2 ,C ,C++ and LPT Marathi for RBI Banking

When variables are created in memory , there is a gap of same o. of bytes in between two variables , so you get difference between the size of these two structs.when two int variables are adjacent ,2 bytes space is a gap in between them. But when int and char then again int char is the sequence of declaration...
read more
When variables are created in memory , there is a gap of same o. of bytes in between two variables , so you get difference between the size of these two structs.when two int variables are adjacent ,2 bytes space is a gap in between them. But when int and char then again int char is the sequence of declaration 1 byte gap is between them. so you get size of above two struct as 16 and 12 bytes respectively. u can use pointer to display address of every variable and you can get exact idea of locations and size of struct. To learn in details u can contact me. and learn online. read less
Comments

Experienced Tutor for B Tech,M Tech , MCA, BCA,MBA, Programming languages and Industrial Training

1,2,4 bytes
Comments

View 2 more Answers

Related Questions

What is MCA?
MCA (Master of Computer Applications) is a three-year Professional Master Degree program in Computer Science. The objective behind MCA is to equip students with the latest technologies, tools and applications...
Avinash
I want know about the salaries we get by the jobs after doing MCA
It is fully based on your skills and ability.
Anusha
Please solved my following aswing mentioned question...
very easy question if you do SQL Development course then u can got all Answers.
Subhayan
0 0
8
How much time is needed to prepare for all the papers (1 - 5sem) of IGNOU MCA?
when you doing MCA then require to clear one by one Semester with related Subjects.
Mohd
How can I apply for the internship in MCA last Semester 6 month industrial project? Where I can search company giving stipend in Pune?
you can contact any company for training then you got some new ideas for intership...
Nitave
0 0
8

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

Ask a Question

Related Lessons

Consignment Accounts By CA Prashanth Reddy
A. INTRODUCTION When goods are sent by one person to another to be sold by the latter on behalf and at the risk of the former, the transaction is known as consignment. The person who sends the goods...
F

4 Things Every Tech Startup Needs to Know About The Coaching Industry
Knowledge on any subject is widely available to those who wish to learn. However, just gathering knowledge from other people doesn’t guarantee results in business. Results come from applying what...

Intro to C Programming
C is one of the most popular computer language today. C language was developed by Dennis Ritchie in 1972. C is portable, Robust, Procedure oriented, High level programming language. C requires compiler...

Internet of Things, Social Media Becoming Part of E-Discovery Landscape
The days when e-discovery consisted of handing over copies of e-mails to address Freedom of Information Act (FOIA) requests, compliance regulations or other legal obligations are over. Now, it's just as...

Structure And Function
A computer is a complex system; contemporary computers contain millions of elementary electronic components.How,then,can one clearly describe them? The key is to recognize the hierarchical nature of most...

Recommended Articles

Master of Computer application is undoubtedly one of the most renowned degrees that many young students choose to study. This post-graduation program completed from a prestigious institute in India can open many scopes for young job seekers. In India, this course takes three years to cover. Candidates receiving this training...

Read full article >

So, Children your exams are fast approaching & you are facing the jitters? correct? But there is nothing to worry. If you plan your studies well, you can definitely pass your examinations with flying colours. Here are a few simple tips that you can follow: 1. Your school has issued a time table for the exams....

Read full article >

Students Preparing for Exams are always bogged by Revision to be completed and how much to Revise. I had found these Revision Techniques to be profound in actual getting good exams scores during my school days. Let us see what effective Revision Techniques can be used to improve Learning 1) If Time is King, an...

Read full article >

There are a number of exciting upcoming government jobs in India for you. Just check out the links and apply for relevant jobs. Open Positions: Position Name Dept./Org. Vacancies Last Date Info. Link LDC, Steno, Driver, MTS, Ayah, Cook IAF 140 30-03-2015 http://bit.ly/1C1zjAM Technician,...

Read full article >

Looking for MCA Coaching 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 MCA Coaching Classes?

The best tutors for MCA Coaching Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Take MCA Coaching with the Best Tutors

The best Tutors for MCA Coaching 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