Can you use your brain?
How do i judge compiler depedencies thru my brain...
May be u could.
Pedro Izecksohn [EMAIL PROTECTED] wrote:
--- Sunil Nair [EMAIL PROTECTED] wrote:
I wrked out in MSVC
with regards,
Sunil Nair
Can you use your brain?
--- Sunil Nair [EMAIL PROTECTED] wrote:
Can you use your brain?
How do i judge compiler depedencies thru my brain...
May be u could.
Did you see the code I sent you?
You replied the message but you did not try to compile my code.
Read well your own message at:
I wrked out in MSVC
main()
{
int a = 5;
int *b = a;
printf(the result *b is %d\n, *b);
printf(the result b is %d\n, b);
*b++;
//Print the values of *b and b C what gets incremented...
(*b)++;
//Print the values of *b and b C what gets incremented...
}
Please include
--- Uma Maheswara Rao Lankoti [EMAIL PROTECTED] wrote:
unary ++ operator is having higher priority than unary * operator.
s...provided might be compiler dependent..
Unary operators appear before their operand and associate from right to left.
so *b++ is token(ed) as *(b++)
*ptr pointer to the address. when the pointer is increased the next address
will be
accessed. suppose a[10] is an array having values {10,20,30,40}.if *ptr is
assign to a (
*ptr=a), then *ptr will point to 10, *ptr++ will point to next integer address
ie *ptr++
value is 20. But when come to
--- Sunil Nair [EMAIL PROTECTED] wrote:
s...provided might be compiler dependent..
#include stdio.h
int main (int argc, char ** argv) {
int i=12345, *ip=i;
printf (%d\n,*ip++);
printf (%d\n,*ip);
return 0;
}
Which compiler are you using?
Unary operators ... associate from
hello friends ;
i'm very confused tat wht would be d output
of *ptr++ (*ptr)++
if ptr is a pointer.
plzzz help me.
VINEET - NOIDA
-
Find out what India is talking about on - Yahoo!
--- vineet kumar [EMAIL PROTECTED] wrote:
i'm very confused tat wht would be d output
of *ptr++ (*ptr)++
*ptr++ - increment the value which ptr contains, that's addr of a data
(*ptr)++ - increment value pointed to by ptr
-
Ramprasad B
--- Uma Maheswara Rao Lankoti [EMAIL PROTECTED] wrote:
for *ptr++ :
unary ++ operator is having higher priority than unary * operator. so
*ptr++ is equal to *(ptr++). ie, its pointing to the value next to
previously pointing one.
Are you sure?