logo

Crowdly

Looking for test answers and solutions? Browse our comprehensive collection of verified answers for at lair.education.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Consider

the variable declaration:                                                                            

         int x = 5;

     Which

is a valid declaration of allowing the variable

ptr points to x?

                    

100%
0%
0%
0%
View this question

Assuming an array declaration, int num[5], how will num be passed to a function?

0%
0%
0%
0%
View this question
When an array is partially initialized, the remaining elements will be initialized to 1.
View this question
Trace the output of the following program segment:

   int *ptr1, *ptr2;

   int x=12, y=3;

        ptr1=&x; ptr2=&y;

        *ptr1 = (*ptr1)* (*ptr2);    

         y+=2;

        printf("%d %d",*ptr2,*ptr1);

View this question
Trace the output of the following program segment.

    int *ptr1,*ptr2;

     int x=3, y=4;

 

      ptr1=&x; ptr2=&y;

      ++(*ptr1);

      *ptr2=*ptr1 + *ptr2;

      printf(“%d %d”,x,y);
View this question
We pass the whole array to a function by reference.
View this question

Array subscripts ranges from 0 to n(array size)

View this question

The *

indirection

operator is used to return the address of the operand that follows.

View this question

The three

values that can be used to assign to a pointer are: NULL, memory address or 1.

View this question
Consider the following statements: int *ptr1,*ptr2; int x=5, y=10; Identify whether the statement "ptr2=10;" is valid.
View this question

Want instant access to all verified answers on lair.education?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!