hi..
in *b++,in which * and ++ have same precedence but associativity is from right to left.
so *b++,incrementing is done after ; in the line..and b now a pointer containing the starting address...
Type: Posts; User: oops..
hi..
in *b++,in which * and ++ have same precedence but associativity is from right to left.
so *b++,incrementing is done after ; in the line..and b now a pointer containing the starting address...
%p is the hexadecimal representation of the address.And you will get ans as hex numbers.actually it gives different address..but in turbo c you will get same address for both..but in linux u will...
you can express 500<x<1000 as
if(x>500&&x<1000)
thank you...:)
yes i will do..string[i] works?? is it gave any garbage value..in the above output will be this is a string..
string is pointer its not an array..so in string storing only the starting address of "appe". so it will not get null at the end..
string[i]=*(string+i);
in this string contains the starting...
fread returning 0 wen it fail to read ,so better you have to check it ,for come out of the loop .
hi
I think you are reading from "office out" in r+ mode,and your writing to the same file.so it will be a infinite loop..because when write to the same file it will again not reaching EOF.
i think...
what is the difference between exit(0) and exit(1)?
is it same??