Question
I just need some help with these questions. C++, thanks in advanced! 1. Assume that ip has been declared to be a pointer to int
I just need some help with these questions. C++, thanks in advanced!
1. Assume that ip has been declared to be a pointer to int and that enrollment has been declared to be an array of 20 elements.
Write a statement that makes ip point to the first element in the array.
2. Declare a char array named line suitable for storing C-strings as large as 50 characters, and write a statement that reads in the next line of standard input into this array. (Assume no line of input is 50 or more characters.)
3. Assume that name is a variable of type string that has been assigned a value. Write an expression whose value is the last character of the value of name. So if the value of name were "Blair" the expression's value would be 'r'.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started