Earths revolution about both the moon and the sun the moon the sun pull of distant planets
Answer:
answer:
#include <iostream>
#include<list>
using namespace std;
bool Greater(int x) { return x>3; } int main() { list<int>l; /*Declare the list of integers*/ l.push_back(5); l.push_back(6); /*Insert 5 and 6 at the end of list*/ l.push_front(1); l.push_front(2); /*Insert 1 and 2 in front of the list*/ list<int>::iterator it = l.begin(); advance(it, 2); l.insert(it, 4); /*Insert 4 at position 3*/ for(list<int>::iterator i = l.begin();i != l.end();i++) cout<< *i << " "; /*Display the list*/ cout<<endl; l.erase(it); /*Delete the element 4 inserted at position 3*/ for(list<int>::iterator i = l.begin();i != l.end();i++) cout<< *i << " "; /*Display the list*/ cout<<endl;
l.remove_if(Greater); for(list<int>::iterator i = l.begin();i != l.end();i++) cout<< *i << " ";
/*Display the list*/
cout<<endl; return 0;
}
Giga usually means 10^9
We're trying to work giba, which is 2^30 into the vocabulary to differentiate them because of the confusion and difference that they create.
Answer:
To store decimal values
Explanation:
Analyzing the given options.
(a)
Decimal values are digits and are to be treated as such. So, storing them as strings mean that they are no longer decimal values.
(b), (c) & (d)
List of colors, words and values that can't be used for calculations are all string values.
Take a for instance.
List of colors: "Red", "Yellow", "Blue",...
Words, "I", "am", "a", "boy"
Values that can't be used for calculations are non numerical data and as such, some of them could be strings.
Hence:
Option (a) answers the question