Search:

Type: Posts; User: pprabhakar

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    5,367

    below 'for' loop is the culprit if( i >...

    below 'for' loop is the culprit




    if( i > 0 )//comparing from the 2nd # & upwards
    {
    for( j=1; j<MAX+1; j++ )
  2. Sorry for the Code Tags Probably , you may...

    Sorry for the Code Tags


    Probably , you may be looking when the user hits an enter key then that is the end of the string.


    while (charPtr = getchar())
    {
    line_of_text[i++] = charPtr;...
  3. The below line of code will infinitely waiting by...

    The below line of code will infinitely waiting by accepting the characters.
    This is wrong


    while (charPtr = getchar());



    Probably , you may be looking when the user hits an enter key then...
  4. Replies
    9
    Views
    1,757

    Check the Usage of fgetc int fgetc( FILE...

    Check the Usage of fgetc
    int fgetc( FILE *stream );

    You may wanted something like below



    while ( ( something = fgetc(Textfile)...... ))
  5. Yes , i can replace with array of structures ....

    Yes , i can replace with array of structures .
    but ,my issue is something like template in c++ ,where i wanna do like the below


    Compute(channel)
    {
    REG_ADDR.SM[channel].COUNT = 10;
    }...
  6. Structure variable : how to set as generic ?

    Hi All,

    The below is the snippet of code which i am working on .
    i am wriiting a switch case to set each of the variables in structure .

    Note : REG_ADDR is address of some say (0x1000) .
    ...
  7. Replies
    2
    Views
    2,161

    volatile int address ??

    if i write to macro "SELECT" is it so i am writing to the perticular address as shown below ??
    Can sombody explain what "Volatile" supports here.
    whether typecast should be int or long ?...
  8. Replies
    5
    Views
    1,905

    Here is the code to compile/check . float...

    Here is the code to compile/check .



    float Util_Float_Abs( float data )
    {
    float ret_value = 0.0;

    if( data > 0.0 )
    {
  9. Replies
    5
    Views
    1,905

    Rounding Float- Return not happening ?

    i wanted to Round off Float value,but the correct computed value is not returning to calling Function .
    i have following functions .
    init -- which calls 'compare' function.
    compare - ...
  10. Software delay can be done using "for" loops ...

    Software delay can be done using "for" loops

    for( a=0;a<8; a++ )
    for( b=0; b<80; b++ );

    or
    by using assembly lang delay routines can be written

    Delay routines depend on Clock...
  11. Replies
    16
    Views
    5,779

    Difference b/w int* p1 and int *p1

    Hello All ,
    is there difference between int* p1 and int *p1 .



    :
    int main()
    {
    int x =3;
    int* p1;
Results 1 to 11 of 11