• Pointer pointing at the wrong data
    hi all, I've been trying to send a prefixed data to my 8051 TXD vt the following command: ORG 000H LJMP SETUP ORG 003H ;External Interrupt 0 CLR P3.6 LCALL EXT_INTERRUPT RETI ORG...
  • function point
    flowing is error,Please help me!! #include <stdio.h> #define NUMBER 2 int max(int a[]) { int z; if(a[0]>a[1]) z=a[0]; else z=a[1]; return(z); } int process(void (* fun)(void...
  • Function pointers
    Hello all, We have a strange problem. During execution of a function, the control goes to some different line in a different function, without making a call it... I will try to explain the scenario...
  • function pointer
    hi all, do you think i can work around function pointers as following: extern void a(void); extern void b(void); void fptr(void *fp) { if (fp == a) a(); if (fp == b) b(); } void...
  • How to make a pointer point to a constant string in RAM
    I'm using Keil3 for arm. 1\I wanna change the string's content,eg from "2007" to "2008" 2\I wanna a pointer ,not a array,to point to the string. But when I do as follows: char *ptr = "2007"; ptr...