- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
4 Posted Topics
Re: [QUOTE=ostkaka]Hello, I wonder if someone wan´t to learn C++ with me on msn or here. I started with a tutorial in C++ but I got stuck, so I thougt it would be better if I learned it with someone else who also want´s to learn C++. So if you are … | |
Re: [QUOTE=TJW]Why is the last element not 7 [Code] int array[3]; int *ary; ary=array; array[0]=0; array[1]=0; array[2]=0; array[3]=44; for (int i=0;i<4;i++) { cout<<array[i]; } cout<<endl; *(ary+0)=1; *(ary+1)=0; *(ary+2)=0; *(ary+3)=7; for (int i=0;i<4;i++) { cout<<array[i]; } cout<<endl; [/CODE] Output 00044 1003<-----------------Why 3 and not 7!!!!!![/QUOTE] hi man.i have tried this,the output comes … | |
Re: [QUOTE=joshilay]can anyone please tell me why following output is generated ... int i=10; printf(" %d ",i++/i); // output=0 i=10; printf("%d",i/++i); //output=1 i=10; printf("%d ",i++/++i); //output =0 i=10; printf("%d",++i/i); //output=1[/QUOTE] in 1st 10/10 will be 1 after that i will be 11 in 2nd 11/11 is 1 thats why o/p is … | |
hi to all.i am new to this forum.i dont know how it works.but i want to know that if i am having some problem then who will answer me and how |
The End.