A

Admin • 833.24K Points
Coach

Q. What will be output if you will compile and execute the following c code?
#include <stdio.h>
#include <string.h>
int main(){
char *str=NULL;
strcpy(str,"cquestionbank");
printf("%s",str); return 0;
}

  • (A) cquestionbank
  • (B) cquestionbank\0
  • (C) (null)
  • (D) it will print nothing

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.