






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







1
2
4
#include
<iostream.h>
int
main() {
char
ch
//assign
code
for
to
c
int
number
ch;
//store
same
code
in
an
int
cout
“The
code
for
ch
is
in
‘\n’;
cout
“Add
one
to
the
character
code\n”;
ch
ch
in
ch; cout
“The
code
for
ch
is
in
endl;
return
5
age; age
double
radius
7
8
#include
<iostream.h>
void
func() { int
x;
local
to
func()
x^
cout
x;
displays
} int
main() { int
x;
local
to
main()
x^
func();cout
"\n";
cout
x;
displays
return
10
#include <iostream.h>int i = 2;
//global
void func(){
cout << i << endl;int i = 3;
//local
cout << i << endl; } int main(){
cout << i << endl;func();cout << i << endl;int i = 5;cout << i << endl;return 0; }