Question: Given the C declaration: char s 1 [ 4 ] , s 2 [ ] = hello; if a string copy function strcpy ( s
Given the C declaration: char s s "hello"; if a string copy function strcpys s is executed, what will happen?
Group of answer choices
The result s will contain the string "hel'
The result s will contain the string "hell", and nothing else happens.
A run time error will occur.
The result s will contain the string "hell", and the following two byte locations will contain o and
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
