C/C++

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
Home » Tech Support »» C/C++
  • Help wanted on some source codes

    /* a.c */int x;int y;void main(){f();printf("%x %x\n", x, y);}/* b.c */double x;void f(){x = -0.0;}/* a.c */int x = 1;int y;void main(){f();printf("%x %x\n", x, y);}/* b.c */double x;void f(){x = -0.0;}/* a.c */int x;int y = 1;void main(){f();printf("%x %x\n", x, y);}/* b.c */double x;void f(){x...

    13 answers | 1503 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

  • C Interpreter and sizeof operator

    If one were writing a C interpreter, is there anything in the standardstandard that requires the sizeof operator to yield the same value fortwo different variables of the same type?Let's assume that the interpreter does conform to the range valuesfor, say, type int, but allocates storage fo...

    12 answers | 746 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

  • Array size depending on symbol address

    Hello,I am running my code on an embedded platform without S. I have defined somedata in a section called .eeprom. The section is defined by the linkerscript and starts at address zero. The symbol __eeprom_end is defined by thelinker script as well, and lies at the end of this section. The addre...

    4 answers | 1007 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

  • PayPal Opportunity

    If you want to make easy money, please read on! I'm so not the kind ofperson that would normally do this kind of thing, but severalfriends told me they had taken part, so I did too, and it works! Soplease, read on, and make your own minds up!Keep in mind that everything stated below is 100%...

    0 answers | 4931 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

  • More questions on realloc

    Thanks to everybody who provided an answer to my previous question onthis. I am trying to grasp the nitty-gritty details of this, and I amhaving difficulties understanding some of the issues involved.According to the man page (and I quote)realloc(void *ptr, size_t size) changes the size of the m...

    5 answers | 1248 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

  • strtok() and EOL

    Hi,I'm using strtok() in the following way:void obtain_param(char *pmsg, CNF_PARAMS *cnf ) {char *s1, *s2;size_t msg_len;s1 = strtok (pmsg,":");if (s1) {s2 = strtok (0, "");msg_len = strcspn(s2, "\n");if (memcmp(s1, "message", sizeof("message")) == 0) {cnf->msg_length = msg_len;cnf->m...

    7 answers | 1008 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

  • sizeof a union

    My friend ask me a question as following:give a union SU define as:typedef union _SU{short x;struct y{ char a; short b; char c;};}SU;what is the sizeof (SU)?My compiler tell me the answer is 6.I want to know why the answer is 6.Thanks in advance....

    18 answers | 318 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

  • Software protection against cracks and piracy

    EXECryptor anticrack and antipiracy software protection tool is updatedto version 2.2.5 improved: full multithread support. now you can use crypt_* blocksin threads without critical section. improved: PowerBasic 8 compatible improved antidebug and patch protectionFor more info click here:http://...

    27 answers | 372 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

  • Help Needed!

    Hi all,I know this is not really suitable to this discussion board, but I washoping that your programming skills could offer me some help.Does anyone know how to re-programme Championship manager 4, so that Iwill be able to cheat and buy players free of charge, thus creating abetter overall team...

    4 answers | 758 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

  • How to redefine arithmetic operators.

    Hello all,I need your help on how to redefine teh function of arithmetic operators inC.for example : if there is an equation c = a/b;i want to execute my own algorithm for division operator.I am compelled to use the native C , instead of calling functions or usingmacros for doing arithmetic oper...

    12 answers | 885 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

  • C function for returning number of digits?

    Is there a C function that returns the number of digits in an inputint/long?example:numdigits(123) returns 3numdigits(1232132) returns 7...

    27 answers | 179 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

  • direct string manuplation not working

    Hi AllHere is a program which basically tokenizes a string based on spaceseperation.But it does not run bcoz i am directly trying to manuplate the string.I cannot use standard string functions due to performance issuescan anybody figure out whats gone wrong with this#include<stdio.h>#inclu...

    9 answers | 1276 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

SPONSORED
QUESTION
SPONSORED
EMSDN