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

I want know about the salaries we get by the jobs after doing MCA
It is fully based on your skills and ability.
Anusha
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
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
What are the best colleges in India to pursue MCA?
It's depends on test merit.
Rohit Nandwani
What is use of pointer?
A pointer is a variable whose value is the address of another variable, i.e., direct address of the memory location. Like any variable or constant, you must declare a pointer before you can use it to store any variable address.
Suresh

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

Ask a Question

Related Lessons

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

How to Study and Learn Better: Tips to Students!
Find out where, when and how you learn best: By taking notes? Reading one book at a time? Through all-out effort? Study groups? Organise your time and the place to study according to that. Take breaks. Check...

Standard Algorithms
Standard algorithms serve as good solutions to standard problems. These algorithms, many of which are intertwined with data structures, provide excellent examples for the analysis of program efficiency....

Organization And Architecture
In describing computers, a distinction is often made between computer architecture and computer organization. Although it is difficult to give precise definitions for these terms, a consensus exists about...

Professional Development Workshops
It is strongly recommended that you attend an AP Summer Institute prior to teaching the course for the first time and participate in one-day workshops and conferences available in your region throughout...

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