Question: QUESTION 13 What will be the output of following code snippet? char str[] = Spring Break!; char *s = str; printf(%s, s++ +2); A. ing

QUESTION 13

  1. What will be the output of following code snippet?

    char str[] = "Spring Break!";

    char *s = str;

    printf("%s", s++ +2);

    A.

    ing Break!

    B.

    Spring Break!

    C.

    ring Break!

    D.

    pring Break!

2 points

QUESTION 14

  1. What will be the output of following program?

    #include

    void func(int*);

    int main()

    {

    int i = 20;

    int *p = &i;

    func(p);

    printf("i = %d ", i);

    return 0;

    }

    void func(int *j)

    {

    (*j)++;

    }

    A.

    Compile-time Error

    B.

    i = 21

    C.

    i = 65732567 //Some Memory Address Location

    D.

    i = 20

2 points

QUESTION 15

  1. What will be the output of following statements?

    int i=3, *j, k;

    j = &i;

    printf("%d ", i**j*i+*j);

    A.

    30

    B.

    27

    C.

    9

    D.

    3

2 points

QUESTION 16

  1. What will be the output of following statements?

    char p[] = "%d ";

    p[1] = 'c';

    printf(p,65);

    A.

    a

    B.

    65

    C.

    c

    D.

    A

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!