







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Dr. Mehandi Nandakumar delivered this lecture at Baddi University of Emerging Sciences and Technologies for Introduction to Computer Programming course. Its main points are: Basic, Data, Types, Bit, Width, Range, Interchange, American, Standard, Code, Information, ASCII
Typology: Slides
1 / 13
This page cannot be seen from the preview
Don't miss anything!








template auto^ else^
operator^ this bool^ enum^
private^ throw break^ extern^
protected^ true case^ false^
public^ try catch^ float^
register^ typedef char^ for^
reinterpret_cast^ typeid class^ friend^
return^ union const^ goto^
short^ unsigned const_cast^ if^
signed^ using continue^ inline^
sizeof^ virtual default^ int^
static^ void delete^ long^
static_cast^ volatile do^ mutable^
struct^ wchar_t double^ namespace
switch^ while
-^ A number code used by C++ to store charactersinternally (it’s easy for a computer to store numbers)• Each character corresponds to a binary code• Most commonly used binary code is ASCII(American Standard Code for InformationInterchange)^ Character^ ASCII Code
Integer Equivalent% (^0100101 373 0110011 51) A (^1000001 65) a (^1100001 97) b (^1100010 98) c 1100011 99
-^ Larger character sets e.g. Unicode•^ Exercise: Use^ char^ as a small
/ This program contains two functions: main()and myfunc()./#include <iostream.h>void myfunc(); // myfunc's**
Protoype int main(){ cout << "In main()";myfunc(); // call myfunc()cout << "Back in main()";return 0;} void myfunc() // myfunc’s
Definition { cout << " Inside myfunc() ";}
Function Prototype void myfunc();^ //^ myfunc's^ Protoype • Like variable declaration; tells the compiler about thereturn type of the function and the number and typeof parameters it needs from the calling function: return_type^ FunctionName ( parameter list
-^ So, place prototypes before