Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C PROGRAMING LANGUAGE. I tried to answer a few. Please help. Question 1 Answer s

ID: 3697093 • Letter: C

Question

C PROGRAMING LANGUAGE.

I tried to answer a few. Please help.

Question 1 Answer saved Marked out of 1.00 P Flag question Pointers cannot be used to Select one o a. find the address of a variable in memory b, reference values directly O c. simulate call-by-reference O d. manipulate dynamic data structures. Question 2 Answer saved Marked out of 1.00 Pointers may be assigned which of the following? Select one Flag question a. all integer values O b. an address o c. NULL O d. both (a) and (c) Pointers are variables that contain as their values. Answer saved Marked out of 1.00 P Flag questiona. strings Select one O b. flowlines ° c. memory addresses O d. directions Question 4 Answer saved Marked out of 1.00 P Flag question A non-pointer variable name references a value and a pointer variable name Select one O a. directly, directly e b. directly, indirectly Oc. indirectly, directly O d. indirectly, indirectlhy The definition Answer saved Marked out of 1.00 P Flag question int *count; Select one O a. is a syntax error because only pointers can be defined with notation. b. is a compile-time error. O c. is a logic error. e d. is a correct definition of integer pointer count.

Explanation / Answer

1. Option-b Reference values directly
2. Option-d Both (b) and (c).
3. Option-c Memory addresses
4. Option-b directly,Indriectly
5. Option-d is a correct definition of integer pointer count
6. Option-b indirection
7. Option-c *Ptr.
8. Option-a &
9. Option-b assigns the address of the variable yPtr to pointer variable y .
10. Option-b The operand of the unary * operator must be a pointer.
11. Option-c &
12. Option-d int * const a
13. Option-b addresses
14. Option-a &arrayName[ 0 ]
15. Option-b value,addresses
16. Option-b Always grant a function enough access to the data in its parameters to accomplish its specified task, but no more
17. Option-c reference, value
18. Option-d returns the total number of bytes in an array
19. Option-a ++
20. Option-c All operators normally used in arithmetic expressions, assignment expressions and comparison expressions are valid in conjunction with pointer variables
21. Option-c &t[3]
22. Option-c is actually an array of pointer
23. Option-d can not be assigned to other function pointers
24. Option-c
25. Option-b int
26. Option-c newline
27. Option-c sprintf
28. Option-d getchar
29. Option-d an array of characters ending in the null character