Printf("%d",(char)2);
If this print 2 then lsb is 2, else if 0 then msb is 2On Jun 13, 5:56 pm, debajyotisarma <[email protected]> wrote: > Is it possible to check endianness of a system in C without creating > variable? > i.e. Program should not contain any variable. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
