Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
POINTERS Assignment

POINTERS Assignment

Ratings: (0)|Views: 171 |Likes:
Published by nita23arora2321
assignment : Pointers and arrays (Finding OUTPUT)
assignment : Pointers and arrays (Finding OUTPUT)

More info:

Published by: nita23arora2321 on Mar 25, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

06/16/2009

pdf

text

original

 
Computer Science (083)Assignment : Pointers
Assignment : Pointers and Arrays
What will be the output of following programs :a)void main( ){int b[] = {10,20,30,40,50};int i ;for (i=0; i<=4; i++ )cout << * (b+i);} b)void main( ){int b[] = {10,20,30,40,50};int i ;for (i=0; i<=4; i++ )cout << * b +i ;}c)void main( ){int b[] = {10,20,30,40,50};int i , *k;k = b;for (i=0; i<=4; i++ )cout << * k ;} d)void change( int * b, int n); // Prototype declarationvoid main( ){int a[] = {2,4,6,8,10};int i ;change (a,5);for (i=0; i<=4; i++ )cout << a[i]<<”#”;}void change( int * b, int n){int i;for (i=0; i<=4; i++ )*( b+i) = * (b+i)+5;}By Nita Arora

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->