Find out the output of the following program. #include<stdlib.h> #include<string.h> int main(){ int i=0, length; char string[] = "Hello\0 World!!"…
Find out the output of the following program.
#include<stdlib.h>
#include<string.h>
int main(){
int i=0, length;
char string[] = "Hello\0 World!!";
length = strlen(string);
char*s = string;
for(i=0; i<length; ++i)
printf("%c",*++s);
return 0;
}From the SGCL Assistant General Engineer 2021 – Written (BUET) exam, question 2 of 14.