Can you please mail me the answers at mpolyadis@gmail.com Thank you very much , in advance for your reply .......
No dude, i still think that the answer is (1). Go and Google. Ya, although different compilers would use different identifier rules.
Question #10 Code: int a=10,b; b=a++ + ++a; printf("%d,%d,%d,%d",b,a++,a,++a); Hmm, this is undefined- suprised nobody caught this Question 97 Code: int m = -14; int n = 6; int o; o = m % ++n; n += m++ - o; m <<= (o ^ n) & 3; If one of the operands is negative, the sign of the result is machine dependent...
Here comes the explanation to your questions: Question #44 increment( i ) is a local function and the value of i that is incremented inside the function will not be reflected in the main function and so the loop will never end because the loop variable is not changed. Question #51 The condition is tested and then the loop breaks giving you the value as 5 outside the loop. Question #91 Static variables are stored in heap and preserve the value for the execution of the program and so it does not reset for each function call where as other variable are allocated in the stack which gets destroyed when the function returns.
can some one please tell me the answer for this Q? Thanks in advance.. * sys/cdef.h */ #if defined(__STDC__) || defined(__cplusplus) #define __P(protos) protos #else #define __P(protos) () #endif /* stdio.h */ #include <sys/cdefs.h> div_t div __P((int, int)); The code above comes from header files for the FreeBSD implementation of the C library. What is the primary purpose of the __P() macro? Choice 1 The __P() macro has no function, and merely obfuscates library function declarations. It should be removed from further releases of the C library. Choice 2 The __P() macro provides forward compatibility for C++ compilers, which do not recognize Standard C prototypes. Choice 3 Identifiers that begin with two underscores are reserved for C library implementations. It is impossible to determine the purpose of the macro from the context given. Choice 4 The __P() macro provides backward compatibility for K&R C compilers, which do not recognize Standard C prototypes. Choice 5 The __P() macro serves primarily to differentiate library functions from application-specific functions.
*question number 1*/ Code: int z,x=5,y=-10,a=4,b=2; z = x++ - --y * b / a;What number will z in the sample code above contain? In this,I think the answer is 10 But It is given that 12 is the ans. How is it possible? Please can you explain it? Thank you.
Hi can some one please tell me the answers for the following I would go for choice 1 as other are not relevant to the cause of the problem. Choice 4 and the choice itself tells the reason Choice 2 as the pointer base address is changed by p++ Choice 1 and the reason lies in the choice option itself.
THANQ so much...for your reply...i need solutions to few more.i will be very thankful to you and i need solutions for the following Q72 Q75 Q83 Q96 Q100 please help me out.
Here they come. Choice is 3 Discussion is there in the comments. I would vote for choice 4 Choice 1 and if you have doubt in such a small question you should refer to some standard C book. private is not a C keyword and so I would go for choice 1.
hi shabbir ihave doubts in the following questions please help me out.i m attaching those questions in a zip file as they are bmp images. please give me the solutions either to my mail sudheer157@yahoo.com or in this forum itself. <<Attachment Removed>>