iven the definition void myFunc(i

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter10: Pointers
Section10.1: Addresses And Pointers
Problem 5E
icon
Related questions
Topic Video
Question
100%

6.Given the definition void myFunc(int a, int* b , int* c)which statement is true

    1. The values of the aliases a, band c are available to the function
    2. Only the addresses of the variables b, care available to the function
    3. myFunccannot change the variable whose value is copied to a
    4. myFunc can change the value of the variable whose address is copied into b
    5. all of the above

7.

Which of the following is a TRUE statement regarding the strcpy(char * str1, char * str2)function?

  1. It copies str2in str1 if str1 has enough space
  2. It adds str2to str1 making a long string
  3. It returns NULL if str1has a shorter length compared to str2
  4. It copies the terminating null after coping the characters from str2to str1

 

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr