You are on page 1of 2

Int: this is just explicit cast.

It just changes type of variable into int (integer) type


Int main: The main function is generally the first programmer-written function run when a program starts Double: Double is a data type that allows the usage of floating point numbers. yes double allows you to have decimals ( I'm am still learning mind you, but i imagine its just like Java). so if you have int a,b; double c; a = 5; b = 2; c = a/b; cout >> c >> endl; output would be 2.50 FILE *fp: To open a file you need to use the fopen function, which returns a FILE pointer. Once you've opened a file, you can use the FILE pointer to let the compiler perform input and output functions on the file. Else:otherwise Else if: By using Else If, it is possible to combine several conditions. Only the statements following the first condition that is found to be true will be executed. All other statements will be skipped. The statements of the final Else will be executed if none of the conditions are true.

if condition then -- statements; elsif condition then -- more statements elsif condition then -- more statements; ... else -- other statements; end if; retrun 0: return 0 is used to terminate the main function of a C program - after having initialized it as int main(int argc, char argv)

This is done so that you can pass parameters into the program, and to return values from the program. Typically, a return value of 0 means that the program finished correctly, and 1 (or any other integer value) means the the program finished with an error. QUEST about the dummy wall.

You might also like