Search:

Type: Posts; User: raadys

Search: Search took 0.00 seconds.

  1. Replies
    13
    Views
    935

    if you want to scan an ascii you have to use char...

    if you want to scan an ascii you have to use char


    #include<conio.h>


    float Purchase, TaxRate;
    char County;
  2. Replies
    13
    Views
    935

    #include float Purchase, TaxRate; int...

    #include <stdio.h>
    float Purchase, TaxRate;
    int County;
    int main()
    {
    printf("AMOUNT OF PURCHASE? ");
    scanf("%f", &Purchase);
    printf("COUNTY? ");
    scanf("%i", &County);
    if(County == 65)
  3. Replies
    8
    Views
    3,010

    thank u !

    thank u !
  4. Replies
    8
    Views
    3,010

    Even I have updated to a union, i am able to...

    Even I have updated to a union, i am able to access the member send data as hexa value. but not as a bit values.


    #include<stdio.h>
    typedef unsigned char byte;
    typedef union _Range
    {
    byte...
  5. Replies
    8
    Views
    3,010

    unable to pass values to struct as a byte.

    Hi,

    I am using a struct and tying to send values to it as byte value



    #include<stdio.h>


    typedef struct{
  6. Replies
    6
    Views
    1,041

    You are saying this ....[↓ ] [...|0 1 2...

    You are saying this
    ....[↓ ]
    [...|0 1 2 3|0 1 2 3|...]
    [...|int..... |int..... |...]
    Which makes more sense when I increment that pointer? This:
    ................[↓ ]
    [...|0 1 2...
  7. Replies
    6
    Views
    1,041

    confusion with pointers size

    char *ptr;
    printf("Output: %d %d %d\n",sizeof(ptr), ptr, ptr+1);

    Output: 4 214734480 214734481

    int *ptr;
    printf("Output: %d %d %d\n",sizeof(ptr), ptr, ptr+1);

    Output: 4 214734480...
  8. large integer implicitly truncated to unsigned type

    I am using a structure , and when i am assing values i get the warning message , how do I avoid that ?



    // header file
    typedef struct {
    unsigned _T_ipset:1;
    unsigned...
  9. Replies
    1
    Views
    514

    I have computed it my self. ...

    I have computed it my self.





    #include<stdio.h>

    typedef union _Time
    {
  10. Replies
    1
    Views
    514

    problem passing structures to a function

    Hi,
    I am bit confused in passing the structure to a function.

    I made a small code and it doesn't build !



    #include<stdio.h>
    struct Compute_off_Time(struct WHATTIME);
  11. I will use these in functions for writing them to...

    I will use these in functions for writing them to EEPROM which based on arrays.
    what else should be added or removed for the written code so far, for eradicating the warning messages w.r.t 'C'...
  12. warning: pointer targets in passing argument of 'strcat' differ in signedness

    Hi,

    I get a warning messages
    how to eradicate ?

    I type casted strcat(Compile_Date,Compile_Time) to
    strcat((unsigned char*)Compile_Date,(unsigned char *)Compile_Time)
    but I see now change.
  13. Replies
    4
    Views
    1,003

    Array of structures problem !

    I am trying to enter data to a structure some 8 times, but not able to do so. Here is my code.



    #include<stdio.h>
    struct _Timer {
    unsigned int HH;
    unsigned int MM;
    }Time[8];
  14. Replies
    4
    Views
    1,899

    Link Error: Cannot access symbol (_Yaxis) at an...

    Link Error: Cannot access symbol (_Yaxis) at an odd address

    still presists even after changing according to your solutions
  15. Replies
    4
    Views
    1,899

    Update multiple variables using one macro.

    I want to update three variables using a single macro.

    I have tried a code using some examples



    #define ShowScreen(x,y,z) {xaxis=x,yaxis=y,zaxis=z;}
    main()
    {
    int...
  16. Replies
    5
    Views
    2,228

    then how can I print time from system at regular...

    then how can I print time from system at regular intervals ?
  17. Replies
    5
    Views
    2,228

    Printing Current TIME

    Hi ,

    Its a code in module of my program, where I need to print current time (HH:MM:SS) at regular intervals. I excluded other code for understanding.




    #include<time.h>
    #include<stdio.h>...
  18. Replies
    7
    Views
    1,527

    Barney, thanks for your reply. Did you mean...

    Barney, thanks for your reply.


    Did you mean for example if I need to compare the structure or use in any loop cases , initialization should be mandatory for dummy variable ?
  19. Replies
    7
    Views
    1,527

    unintiailized variables inside a structure

    Hi,

    Let me say I have a structure


    struct time{
    char hours;
    char minutes;
    char seconds;
    char dummy;
  20. Replies
    6
    Views
    3,079

    Uninitialized variables in structure.

    Hi,

    Let me say I have a structure


    struct time{
    char hours;
    char minutes;
    char seconds;
    char dummy;
Results 1 to 20 of 21