Current Papers

Midterm Spring 2026
1,923 views
CS201 - CS201

01 Jun 2026 at 01:43 PM

My today cs201 paper subjective short question 1 find the output int main(){ int num[5]={21,45,43,54,23}; int *ptr; ptr=num; cout << *(ptr+1*2) } long question 1: find the ouput …

My today cs201 paper subjective short question 1 find the output int main(){ int num[5]={21,45,43,54,23}; int *ptr; ptr=num; cout << *(ptr+1*2) } long question 1: find the ouput void func1(int *xx,int *yy){ *xx=*xx+10; *yy=*yy+10; } void func2(int xx,int yy){ xx=xx+10; yy=yy+10; } int main(){ int x=10; int y=22; func1(&x,&y); cout << x << " , " << y << endl; func2(x,y); cout << x << " , " << y << endl; } short question 2: convert while to for: int main(){ int i=1; int n=5; while(n<=5){ cout << i*i ; i++; } } long question 2: find the ouput: int main(){ int n=5; while(n!=5){ cout << n << endl ; n=n-1; } }

View Full Paper
Share
Shared by Annonymous 1 month ago
© 2026 VUCTN. All rights reserved. v1.0.0