Question { 9791 }
How do I declare an array of N pointers to functions
returning pointers to functions returning pointers
to characters?
Answer
Is This Answer Correct ? | 8 Yes | 3 No |
Question { 11590 }
How can I set an array's size at run time?
Answer
Is This Answer Correct ? | 3 Yes | 0 No |
enum day = { jan = 1 ,feb=4, april, may}
what is the value of may?
a)4 b)5 c)6 d)11
e)none of the above
Answer
Is This Answer Correct ? | 73 Yes | 15 No |
What will be result of the following program?
void myalloc(char *x, int n)
{
x= (char *)malloc(n*sizeof(char));
memset(x,\0,n*sizeof(char));
}
main()
{
char *g="String";
myalloc(g,20);
strcpy(g,"Oldstring");
printf("The string is %s",g);
}
a) The string is : String
b) Run time error/Core dump
c) The string is : Oldstring
d) Syntax error during compilation
e) None of these
Answer
Is This Answer Correct ? | 5 Yes | 0 No |