#define sro(X) (X*X)main(){int i=3,j,k;j=sro(i++);k=sro(++i);printf("n%d %d",j,k);getch();}output is 9 49can any one explain why we get second output as 49
Latest Answer: ya this is kind of weird problem dat u will always get with macros..wat happens is wen u write j= sro(i++) it gets expanded to (i++*i++)which assigns 9 to j. now since u r getting i++ twice it gets incremented twice so becomes 5 after executing j=sro(i++)..now ...
How can we display data in subscript by using C language?
What is function pointer in C program?
Latest Answer: Each pointer will point to a data type like integer, float etc., similar to these pointers we can also have some special pointers that point to the memory location of the functions and these pointers are named as function pointers ...
How many nested if statements are allowed in C?
Latest Answer: There is no such limitations you can use any no of nested if statement. ...
How to access and read data in mdb file from C?
How can we stop the user make an object on stack, i.e. user must be able to create the object on heap only.
main(){printf("""ramabrahmam"");}
Latest Answer: the program gives compilation error.the reason for compilation error is the string is not terminated properly .the compiler is expecting a more quote from the user and throws the error. ...
In this x is the input and F(X) is the output,tab_func(sin, 0.0, PI, PI/8.0) is the method i have to use to get a output.Plz give me the relation b/w x and F(x).A function which will tabulate values of
View page << Previous 1 2 3 [4] 5 6 7 8 9 10 Next >>

Go Top