Re: [algogeeks] C easy doubt

2011-08-08 Thread Brijesh Upadhyay
Thank you , every 1 . got it...

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/algogeeks/-/3cPVG1k4kJ4J.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] C easy doubt

2011-08-08 Thread sukran dhawan
thnks

On Mon, Aug 8, 2011 at 8:04 PM, Dipankar Patro  wrote:

> Well, &a here is the address where the address of the whole 2D array is
> stored.
>
> with &a+1 you move over the whole array in one go. So you land up with an
> address after the 2D array's last element.
>
> On 8 August 2011 19:59, Brijesh Upadhyay wrote:
>
>> int main()
>> {
>>int a[3][4]={1,2,3,4,5,6,7,8,9,10,11,12};
>>printf("%u %u %u",a, a+1,&a+1);
>>getch();
>> }
>>
>> how &a+1 is valid..?? please explain
>>
>> --
>> Regards,
>> Brijesh Upadhyay
>> CSE , final year.
>> Thapar University
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to algogeeks@googlegroups.com.
>> To unsubscribe from this group, send email to
>> algogeeks+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>>
>
>
> --
>
> ___
>
> Please do not print this e-mail until urgent requirement. Go Green!!
> Save Papers <=> Save Trees
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] C easy doubt

2011-08-08 Thread Dipankar Patro
Well, &a here is the address where the address of the whole 2D array is
stored.

with &a+1 you move over the whole array in one go. So you land up with an
address after the 2D array's last element.

On 8 August 2011 19:59, Brijesh Upadhyay wrote:

> int main()
> {
>int a[3][4]={1,2,3,4,5,6,7,8,9,10,11,12};
>printf("%u %u %u",a, a+1,&a+1);
>getch();
> }
>
> how &a+1 is valid..?? please explain
>
> --
> Regards,
> Brijesh Upadhyay
> CSE , final year.
> Thapar University
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>


-- 
___

Please do not print this e-mail until urgent requirement. Go Green!!
Save Papers <=> Save Trees

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] C easy doubt

2011-08-08 Thread rajeev bharshetty
Oh Sorry
errata!!!
 in the second sentence it is a+1 which will point to next element in the
array.

On Mon, Aug 8, 2011 at 8:02 PM, payel roy  wrote:

> Yes it is... &a+1 will point to starting address of a + 12 * size of int.
> byte.
>
>
> On 8 August 2011 19:59, Brijesh Upadhyay wrote:
>
>> int main()
>> {
>>int a[3][4]={1,2,3,4,5,6,7,8,9,10,11,12};
>>printf("%u %u %u",a, a+1,&a+1);
>>getch();
>> }
>>
>> how &a+1 is valid..?? please explain
>>
>> --
>> Regards,
>> Brijesh Upadhyay
>> CSE , final year.
>> Thapar University
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to algogeeks@googlegroups.com.
>> To unsubscribe from this group, send email to
>> algogeeks+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
Regards
Rajeev N B 

"*Winners Don't do Different things , they do things Differently"*

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] C easy doubt

2011-08-08 Thread payel roy
Yes it is... &a+1 will point to starting address of a + 12 * size of int.
byte.

On 8 August 2011 19:59, Brijesh Upadhyay wrote:

> int main()
> {
>int a[3][4]={1,2,3,4,5,6,7,8,9,10,11,12};
>printf("%u %u %u",a, a+1,&a+1);
>getch();
> }
>
> how &a+1 is valid..?? please explain
>
> --
> Regards,
> Brijesh Upadhyay
> CSE , final year.
> Thapar University
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] C easy doubt

2011-08-08 Thread rajeev bharshetty
&a+1 is valid . Basically &a is the address of the entire array so, &arr+1
will point beyond this array.
a is the base address and &a+1 will point to the next element in the array.

On Mon, Aug 8, 2011 at 7:59 PM, Brijesh Upadhyay <
brijeshupadhyay...@gmail.com> wrote:

> int main()
> {
>int a[3][4]={1,2,3,4,5,6,7,8,9,10,11,12};
>printf("%u %u %u",a, a+1,&a+1);
>getch();
> }
>
> how &a+1 is valid..?? please explain
>
> --
> Regards,
> Brijesh Upadhyay
> CSE , final year.
> Thapar University
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>


-- 
Regards
Rajeev N B 

"*Winners Don't do Different things , they do things Differently"*

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.