CS201 - Introduction To Programming - UnSolved - FINAL Term Paper - 01 PDF
CS201 - Introduction To Programming - UnSolved - FINAL Term Paper - 01 PDF
COM
FINAL TERM
source file
object file
header file
exe file
Q # 08: Identify the correct option which is used for calling the
function float area (int).
area(&num) ;
area(num) ;
area(int num) ;
area(*num) ;
#include <iostream.h>
main ( )
{
int x, y;
x = 15;
y = 10;
x = x + y;
y=x-y;
x=x-y;
cout << “The value of x is ” << x;
}
class myclass{
public:
static int x;
myclass(){
x++;
}
};
myclass::x=0;
main(){
myclass obj1, obj2;
cout << obj1.x << “\t” << obj2.x ;
}
Data()
{
cout<<”Constructor Called…\n ”;
}
void getIncreament()
{
cout<<”Data = ” << ++ data;
}
};
void main()
{
char * String ;
String = New char[15];
String = “Welcome To VU”;
cout<<String;
free (String);
}