Like Wi-Fi, Li-Fi wireless and uses for data transmit with high speed and 100 times faster than Wi-Fi. Both Wi-Fi and Li-Fi transmit data over the electromagnetic spectrum, but Wi-Fi utilizes radio waves, Li-Fi uses visible light which has much wider bandwidth and it is a part of optical wireless communication technology.
Category: C Language
C Language trick
Identify byte ordering
Concept of Byte Ordering:
Byte Ordering – Little Endian or Big Endian
What is Byte Ordering? Different machine has different architecture, it stores byte in different order, either in “Big-Endian” or in “Little-Endian”. Big-Endian – The most significant byte is on the left end of a word. Little-Endian – The most significant byte is on the right end of a word.
Optimization increment-decrement operator
Optimization is require mainly for Faster execution of program Reduce memory load Pre-increment is better why?: There are two types of incrementing or decrement, prefix (++x or –x) and postfix (x++ or x–). In the prefix, the value is increased and the new value is returned. In the postfix, the value is increased, but the…
Pointer Concept
Let Us have something which is quite interesting, but many students are scared of and afraid of doing. YES YES you are getting it right, I am Posting one of the most interesting Post which will make a word like “POINTER” Very much easy in compare to other feature of C Language. With This post…
Memory mapping in C
How C stores file in the memory including: Text segment Initialized variable Uninitialized variable Stack (E.g. function) Heap (E.g. pointers)
Question of Pointer
Why output of this 2 program is different? P1: float a=2,*f1,*f2; f1=f2=&a; *f1+=(a+=2.5); printf(“\n%f %f %f”,a,*f1,*f2); P2: float a=2,*f1,*f2; f1=f2=&a; a+=(a+=2.5); printf(“\n%f %f %f”,a,*f1,*f2); Output: (In GCC and Turbo C both) 6.500000 6.500000 6.500000 9.000000 9.000000 9.000000
History of C compiler
The first compiler was written by Grace Hopper, in 1952, for the A-0 System language. C was therefore useful for many applications that had formerly been coded in assembly language, B preceded C but most probably PDP-7 assembler language was the choosed to write the first C compiler which is developed by Dennis Ritchie, one…
Basic of C
To Learn more about C and its basic, these sites are very helpful to learn C from scratch. Tutorials Point C Programming C Programming Expert
Different methods of swap numbers without using third variable
int a=4,b=5; 1st Method: b=(a+b)-(a=b); 2nd Method: a^=b^=a^=b; 3rd Method: a=a+b; b=a-b; a=a-b; 4th Method: a=a*b; b=a/b; a=a/b; 5th Method: a=b-~a-1; b=a+~b+1; a=a+~b+1;