

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!


CF-Quiz Marks [10]
Program-A main( ){ int A[5]={1,2,3,4,5},num=15,dum=10,result; int ptr; ptr=A; result=(++ptr)+num--+dum--; ptr++; dum=++ptr+(++num)+(++dum); cout<<result<<" "<<ptr<<" "<<dum; } Program-B main(){ int a[10]={1,2,3,4,5,6,7,8,9,10},ptr; for(int d=0;d<5;d++){ ptr=(&a[d]+2); cout<<ptr; ptr++; } } Program-C main(){ int *doubl,single,size; doubl=&single; doubl=&size; doubl=10; cout<<size<<single<<doubl; } Docsity.com