Q1. What will be the output of the following program segment : void main() { int array[]={2,3,4,5}; int *arptr = array; int value = *arptr; cout<
>y; for(i=count-1;i>=0,i--) switch(i) { case 0: case 2:cout<>y+x[i]; } } Q6. Give the output of the following program : #include
struct point { int x,y; }; void showpoint p) { cout< int calc(int u) { if(u%2==0) return u+10; else return u*2; } void pattern(char M, int B=2) { for(int cnt=0;cnt