Question

Write a statement to declare a two-dimensional array of floats having size SIZE for both rows...

Write a statement to declare a two-dimensional array of floats having size SIZE for both rows and columns.(c++)

Write a statement that converts and ASCII string “1410” to integer 1410.c++

Both in C++

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1. Write a statement to declare a two-dimensional array of floats
having size SIZE for both rows and columns.(c++)

Answer:- float mat[SIZE][SIZE];
Explanation:- First subscript denotes the numbers of rows and seconds subscript
denotes that number of columns. mat is variable name for two dimensional array.
  

2. Write a statement that converts and ASCII string “1410” to integer 1410.(c++)

Answer:- int n=stoi(str);
Explanation:- Here str is a string that stores "1410" and n is interger variable
that stores the value of str after converting to interger by stoi()
function.
stoi function by name itself signifies ites uses.
s(string) to i(integer).

Add a comment
Know the answer?
Add Answer to:
Write a statement to declare a two-dimensional array of floats having size SIZE for both rows...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT