Re: Pre and post increment

2009-07-20 Thread dharmendra pandit
As the C specification document specifies in section 6.5.2.2 point no 10: The order of evaluation of the function designator, the actual arguments, and subexpressions within the actual arguments is unspecified, but there is a sequence point before the actual call. Therefore if in any function

Re: array semantic query

2009-07-18 Thread dharmendra pandit
Hi, I tried the following simple code segment in gcc and it gave the incompatible type error as mentioned below. int main() {     int arr[10];     arr = arr;   // error: incompatible types when assigning to type ‘int[10]’ from type ‘int *’ } Here it seems GCC is retaining the left hand side

array semantic query

2009-07-18 Thread dharmendra pandit
Hi, I tried the following simple code segment in gcc and it gave the incompatible type error as mentioned below. int main() { int arr[10]; arr = arr; // error: incompatible types when // assigning to type ‘int[10]’ from type ‘int *’ } Here it seems GCC is retaining the left

Re: array semantic query

2009-07-18 Thread dharmendra pandit
the left hand side type to be array of type. -Dharmendra On Sat, Jul 18, 2009 at 3:51 PM, Andrew Haleya...@redhat.com wrote: On 07/18/2009 10:35 AM, dharmendra pandit wrote: Hi, I tried the following simple code segment in gcc and it gave the incompatible type error as mentioned below. int