Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What is the purpose of a code of conduct?

Answered: 1 week ago

Question

1. What are the marketing implications of this situation?

Answered: 1 week ago