A
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;
}
- Correct Answer - Option(C)
- Views: 18
- Filed under category Data Structure and Algorithms (DSA)
- Hashtags:
Discusssion
Login to discuss.