In the following code segment what will be the result of the function, value of x , value of y{unsigned int x=-1;int y;y = ~0;if(x == y)printf("same");elseprintf("not same");}a) same, MAXINT, -1b) not same, MAXINT, -MAXINTc) same , MAXUNIT, -1d) same, MAXUNIT, MAXUNITe) not same, MAXINT, MAXUNIT
a
What will be the result of the following program ?char *gxxx(){static char xxx[1024];return xxx;}main(){char *g="string";strcpy(gxxx(),g);g = gxxx();strcpy(g,"oldstring");printf("The string is : %s",gxxx());}a) The string is : stringb) The string is :Oldstringc) Run time error/Core dumpd) Syntax error during compilatione) None of these
b
Which of the following function is used to repaint a window immediatelya) Sendmessage(hWnd,WM_PAINt,......)b) InvalidateRect(.......)c) MoveWindowd) WM_COPYe) None
Which function is the entry point for a DLL in MS Windows 3.1a) mainb) Winmainc) Dllmaind) Libmaine) None
b
The redirection operators > and >>a) do the same functionb) differ : > overwrites, while >> appendsc) differ : > is used for input while >> is used for outputd) differ : > write to any file while >> write only to standard outpute) None of these
b
Latest Answer : The UpdateWindow() method is used to repaint window immediatly.Thank You.Sandeep Kutwal. ...
Latest Answer : WinMain ...
int (*f)(),int* f();
What does the following statement mean?int (*a)[4]A. 'a' is a pointer to an array of 4 integersB. 'a' is an array of pointers to integerC. 'a' is a pointer to function returning an integer
A