Sunday, 4 January 2015

Programming Quiz-55


main()
  {
 char * strA;
 char * strB = “I am OK”; 

memcpy( strA, strB, 6);
printf("%s",strA);
}

a. Runtime error.
b. “I am OK” 

c. Compile error
d. “I am O”   


Answer: D

No comments:

Post a Comment