Problem2195--Write string variable

2195: Write string variable

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 168  Solved: 84
[Submit] [Status] [Web Board] [Creator:]

Description

1. Write a line of code that declares and initializes a C-string variable, yourString, that can hold up to 10 characters. Use the initialization string “Whoops”. 2. Write code to define a C-string aString variable, of size 10 but do not initialize it. Use a library C-string library function to copy the C-string literal, “Hello” into aString.

Source/Category

35