Hi!
NULL statement is a statement, it end with semicolon ( ; or {without any body}) wherever we required,we can use this statement for some Time delay.
if(1);
for(i=0;i<10;i++);
...
Type: Posts; User: venki_2007; Keyword(s):
Hi!
NULL statement is a statement, it end with semicolon ( ; or {without any body}) wherever we required,we can use this statement for some Time delay.
if(1);
for(i=0;i<10;i++);
...
Hi!
The Null statement is nothing but, There is no body within loop or any other statements in C.
This Statement is used for some time delay or the COMMENT /*C PROGRAM1*/ is also a null...
Hi!
Main difference between STRUCTURE and CLASS are follow:
STRUCTURE:
------------> The Structure is a collection of dissimilar data types
------------> By...
Hi!
you will check the program at TURBO C/C++ compiler
To first case
c=++a+ ++a+ ++a;
if a=5
c=24;
To second case...
Hi!
You will send your code or error line that i will suggest you.
Hence, you may done error in your program or i will give alternative to that pgm.
Regards
venkat.G
Hi!
If you will use malloc() at your program in linux environment then you should add the slab.h as well as included files in slab.h....
Hi!
your second case output is 15
c=a++ +a++ +a++;
The "+" "=" operators are first precedence then post increment operator "++" ...
Hi!
Your first case output is 24
c=++a+ ++a+ ++a;--->(1)
In every step "a" value is change it's memory location.
Finally a=8; i.e &a=8;
so, c=(++a)+ (++a)+...
Hi!
In this equatin c=++a+ ++a+ ++a;
The "a " value is changing every step so, ++a is consider as a=1+a;
In this case, "a" value is changing it's memory location(&a).
...