473,408 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

what endian system c compiler follow for data types

i want to know that beacause in union a bigger variable is stored in little endian system.

while reading a book "test your c skills",i found a question in which author gave hexadecimal representation(i.e A B C D) of a no in float variable and asked it will get printed in format A B C D or D C B A.

the answer was D C B A.it refers that is stored in little endian system.i want answer is all data type is stored in little or some in big endian system or mixture of these two.
Mar 16 '11 #1
5 2187
johny10151981
1,059 1GB
About Microsoft:
There is two basic type
1. char(CHAR) 8 bit
2. wchar_t(TCHAR) 16 bit

VC/VC++ support both Unicode(16 bit) and Multibyte(8 bit/16 bit/24 bit).

If you want to read a multibyte charset file you can convert between character set to character set

In general I have to deal with Character set. I create output in UTF-8 with HTTP Server and then read it through Desktop Application. In order to display I transfer From UTF-8 To Unicode.
Mar 16 '11 #2
Banfa
9,065 Expert Mod 8TB
It is platform dependent, that is it normally depends on the process/OS in use.
Mar 16 '11 #3
donbock
2,426 Expert 2GB
Are you sure you can't figure out a way for your program to be endian-neutral?
Mar 16 '11 #4
thanks 4 ur reply.but ans still need more refinement.
Mar 17 '11 #5
Banfa
9,065 Expert Mod 8TB
Given what you have told us we have told you everything we can.
Mar 17 '11 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Anon Email | last post by:
Hi people, I'm learning about header files in C++. The following is code from Bartosz Milewski: // Code const int maxStack = 16; class IStack
13
by: Shailesh Humbad | last post by:
I wrote a short page as a quick reference to c++ integer data types. Any feedback welcome: http://www.somacon.com/blog/page11.php
2
by: GrahamJWalsh | last post by:
I have a basic question regarding various data types (related to reinterpret_cast, static_cast). Lets say I have some declarations thus; int i = 444; unsigned int* uip; I then do...
12
by: Mars | last post by:
I searched and found quite many, but (nearly) all are about C++....... Any recommendation for such reference for pure C???? Thx~~~~ Mars.
12
by: siliconwafer | last post by:
Who decides size of data types in C? Is it the: 1.C standard and hence the compilers 2.Operating System.
5
by: Craig | last post by:
Hi everyone, As a relative new-comer to the wonderful world of .NET Framework and the C# langauge I have come across something that I would like to clarify (hopefully with the help of kind...
2
by: Tarren | last post by:
Hi: What would be some standard convention to follow when writing web services for return types for .NET only data types? I initially wrote my web service that returns some XML as...
14
by: ThazKool | last post by:
I want to see if this code works the way it should on a Big-Endian system. Also if anyone has any ideas on how determine this at compile-time so that I use the right decoding or encoding...
20
by: ilya2 | last post by:
I am supposed to teach an introductory C course with an unusual slant, and have trouble finding an appropriate textbook. The course will begin traditionally enough with variables, loops,...
6
by: RaulAbHK | last post by:
Dear all, I guess this is a basic question with an easy answer but I am a beginner and I would much apreciate your feedbacks. Let's say I have a library with some functionality to perform some...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.