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

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
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
What are the best colleges in India to pursue MCA?
It's depends on test merit.
Rohit Nandwani
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
I am currently doing bsc computer science and wants to give upsc exam , but I am in the confusion that what should I choose for my post graduation - Msc computer science or MCA
Both options are equally good. It depends on your interest and skills. M.Sc is more into the how and why part while MCA is application oriented. That is MCA is more towards the usage of existing technologies...
Abhishek
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

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

Standard Costing
Define the term Standard Costing and outline the steps involved therein. According to ICMA, London, Standard Costing refers to "the preparation and use of standard costs, their comparison with actual...
F

The Evolution Of The Intel x86 Architecture
Throughout this book, we rely on many concrete examples of computer design and implementation to illustrate concepts and to illuminate trade-offs. Most of the time, the book relies on examples from two...

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

While Working, Always Enhance Your Education !!
In Any sector or domain every one must upgrade their education academically or professioally. Since so many times our Woring Knowledge is good but academicically we are week at this front. For Excel...

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