Re: [algogeeks] C question.. sizeof operator

2011-08-03 Thread Vivek Ramamoorthy
output ll be 10..sizeof operation just find the size of the variable's
datatype..no changes for the variable inside the operation..

-- 
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 question.. sizeof operator

2011-08-03 Thread Xiaoxiao Qin
 sizeof is not a function. The inside content in sizeof() cannot be compiled 
during the compiling time, It will be replaced with the type. For example, 
compiler will replace the code as j = 4;  

So ++i does not execute.

 
On Aug 3, 2011, at 6:12 PM, brijesh wrote:

> main()
> {
> int i,j;
> i=10;
> j=sizeof(++i);
> printf("%d",i);
> }
> 
> please give the output with explanation!
> 
> -- 
> 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.
> 

(Steven Qin)
founder in Rfanti.com(烦题网)
Mobile: 18621588738
Office: +86-21-60832295
Rfanti / www.rfanti.com
单位: 上海阿拉丁电子商务有限责任公司
地址: 上海市宝山区淞桥东路111号联合滨江大厦1811
有问题,找烦题



-- 
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 question.. sizeof operator

2011-08-03 Thread Rajeshwar Patra
i=10


-- 
*Rajeshwar Patra,*
*MCA final year,*
*Nit Durgapur*

-- 
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 question.. sizeof operator

2011-08-03 Thread sachin sharma
output would be 10
size of just calculate the type of the expression not the value


Best Wishes
Sachin Sharma

-- 
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.