Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

11. A field that is not a pointer in the structure struct X can be A. Only a primitive C data types B. Any valid

11. A field that is not a pointer in the structure struct X can be A. Only a primitive C data types B. Any valid C datatype including programmer defined datatypes C. Any valid C datatype except the type struct X; D. Any valid C datatype except union; E. None of the above 12. Write a function myStrCopy(char *s1, char *s2) that copies string s2 to s1. A. Use array indices to solve the problem. B. Use only pointers to solve the problems 13. Which line of code will be printed? int y = 5; int *p = &y; int **x = &p; A. If (x == **p)) printf(It ); B. If (*x == *p ) printf(is ); C. If (y == p) printf(a ); D. If (**x == *p) printf(nice day ); E. Noting will be printed 14. Which option below correctly completes the statement - The do-while loop is used when ____________ A. The programs wants to execute the block of code at least once B. the block of code consists of two or more statements C. a for loop cannot be used D. the program needs to count the number of iterations that block of code is executed E. None of the above 15. Which option correctly finds the location of an element k in a onedimensional array of long numbers (array name is arr) A. Address of element k = arr+ + k B. Address of element k = arr + k*sizeof(long) C. Address of element k = arr + k*sizeof(arr) D. Address of element k = arr + sizeof(long) E. None of the above 16. The notation *(arr[3]+1) is the same as A. *arr[3][1] B. arr[3][1] C. arr[1][3] D. arr[3][0] E. None of the above

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

How could an organization's culture be used as a control mechanism?

Answered: 1 week ago