main()
{
char *a = "Hello ";
char *b = "World";
clrscr();
printf("%s", strcat(a,b));
}
A) HelloWorld
B) Hello World
C) Hello
D) None of the above
It will give a sementation fault
The pointer a is allocated just sufficient space to accomodate "Hello". When we add beyond that it will give a seg fault
Monday, August 17, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment