Use the ASCII chart below to help determine the output of…

  Use the ASCII chart below to help determine the output of the following program.  Assume that the address of str is:  0x9F8   ascii chart:   #include #include char str; int main(void){     char *str_ptr;      strcpy(str,”abcde0123456789″);     str_ptr = str;     str_ptr += 10;                 printf(“%c %x %p \n”,                *str_ptr, *str_ptr, str_ptr);     return 0;}

The following program is called Q14. Which option below best…

The following program is called Q14. Which option below best describes the output resulting from the following command: $ ./Q14 127.0.0.1  Note that there are 2 command line arguments: “./Q14” and “127.0.0.1” #include #include int main(int argc, char *argv, *str;    int index = argc;        strcpy(ipv4_buffer,argv);    str = ipv4_buffer;     str += index;            printf(“%s\n”,str);     return 0;}

  Which option below best describes the output from the foll…

  Which option below best describes the output from the following program: #include int main(){   int x, y,  *x_ptr;    x_ptr = x;    for (y=0; y < 5; y++)      x=y;    if (*(x_ptr + 2) != x)      printf("Red ");   else      printf("Blue ");    printf("%d",*(x_ptr + 2))    return 0;}

Which option below best describes the output of the followin…

Which option below best describes the output of the following program? #include int main(){  int num1,quotient;  int num_array, i=1,k;   num1 = 55;  quotient = num1;  while(quotient!=0){     num_array= quotient % 4;     i++;     quotient = quotient / 4;   }       for(k = i – 1; k>0; k–)     printf(“%d”,num_array);   return 0;}  

Which option below best describes the output of the followin…

Which option below best describes the output of the following program? #include struct st {int a;char ch;}; int main(void){    struct st obj;    struct st *stobj = &obj;     stobj->a = 31;    stobj->ch = ‘X’;    obj.a = 16;    obj.ch = ‘C’;     printf(“%d %c \n”, stobj->a, stobj->ch);     stobj->a = 7;    stobj->ch = ‘B’;     printf(“%d %c \n”, obj.a, obj.ch);    return 0;}