hey guys and girls.... if any.
i have some basic questions ....... study guide our teacher gave us.
1. in this line what part is directly related to declaring the variable....
and also what part is related directly to initializing the variable.....
double age = 0;
2. i have to declare and initialize a variable to suit this data. ill show you what i put...
correct me if you know better
shoe size ------------------- int size = 0;
price airline ticket ----------- double price_ticket = 0;
grade on a homework ------------------ char = ' ' = A is best, B is good , C is average
number of letters in a word ------------------ dont know
a letter of the alphabet -------------------- dont know
3. i have to give preprocessor directives that show
- PI - #include ---------------------------------------<math.h> --- i know that one
-avogadros number --------------------------------- havent learned
- number minutes in an hour ------------------------- dont know
4. what are the advantages to using a constant as opposed to a variables in a code
5. what are the results of these when done in c
456.5/59 =
25/45 =
(double)65/59
62/45.6
(int)((int)10.4/(double)4)