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;} (Solved)

1. cquestionbank

2. cquestionbank\\0

3. (null)

4. it will print nothing

  • c. (null)
Subscribe Now

Get All Updates & News