CS201 VU Current Final Paper Spring 2012

All are program and its code..
Find error in class,, templates..
And matrix programs Question No: 31 (Marks: 3 )
What will be the output of following functions if we call these functions three times? 1)

void func1(){
int x = 0;
x++;
cout << x << endl;
}
Answer:
1
1 1
2)
void func2(){
static int x = 0 ;
x++;
cout << x << endl ;
}
Answer:
1
2
3

5 marks question explain each statement….

Streamposorg=afite.tellp(); Afilte.sekp(0,ios::end);

DOWNLOAD SOLUTION HERE
loading...