Search:

Type: Posts; User: thannara123

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,027

    Switch case learning doubt

    I have some doubt the following code

    #include <stdio.h>

    int main ()
    {
    /* local variable definition */
    char grade = 'B';

    switch(grade)
  2. Replies
    8
    Views
    902

    Sorry for my mistake , thanks for the advise

    Sorry for my mistake , thanks for the advise
  3. Replies
    8
    Views
    902

    I was mistyped the correct code is ...

    I was mistyped the correct code is



    for(i=0;i<8;i++)
    if(a[j]>>i & 1)
    {
    // bit is one
    }
  4. Replies
    8
    Views
    902

    i didnt get answer there correctly thats why i...

    i didnt get answer there correctly thats why i posted , may i did wrong ?
  5. Replies
    8
    Views
    902

    array is a 8 bit number not a single bit . in...

    array is a 8 bit number not a single bit . in this 8 bit need to check whether it is zero or one .
  6. Replies
    8
    Views
    902

    8 Bit (Binary) array checking in c

    I have an array a[j] . In it has an 8 bit binary digit . I need to check each bit whether it was zero or one . How to write the program in C .


    for(i=0;i<8;i++)
    {
    b = i>>a[j]&&1;
    ...
  7. Replies
    11
    Views
    1,088

    I need like the following example int a = 5; ...

    I need like the following example

    int a = 5; // binary: 0000000000000101
    int b = a << 3; // binary: 0000000000101000, or 40 in decimal
    int c = b >> 3; // binary:...
  8. Replies
    11
    Views
    1,088

    sorry Nothing get I re-edited

    sorry Nothing get

    I re-edited
  9. Replies
    11
    Views
    1,088

    sorry , i am posting the my testing program ...

    sorry , i am posting the my testing program

    #include<stdio.h>
    #define left........by1 a=a<<1;
    int main()
    {
    int8 a = 7;

    printf("%d\n ", a);
    left........by1;
  10. Replies
    11
    Views
    1,088

    i want to declare variable wit 8 bit only i...

    i want to declare variable wit 8 bit only
    i want to use shift operator in that 8 bit and need to display .
    whenever i use the shift operator in 8 bit variable it goes to 16 bit :confused:
  11. Replies
    11
    Views
    1,088

    cannot declare int8 variables

    Hello I cat declare cannot declare int8 variables
    why I can do that ?
    I am using MINGW compiler?
  12. Replies
    3
    Views
    1,120

    I think wherever need higher speed

    I think wherever need higher speed
  13. Replies
    3
    Views
    1,229

    Shift operator doubt

    byte[i] <<= 1; what does it mean ?
  14. Replies
    2
    Views
    590

    if loop doubt

    what does mean as follows if loop


    if(1)
    {}


    or what does mean
  15. Replies
    2
    Views
    974

    Binary to decimal c code

    Hello experts i need a binary to decimal code .
    i am interfacing an ADC toa controller to display the the corresponding voltage .
    i googled got a lot of but i am facing some confusion please any...
  16. Replies
    3
    Views
    939

    can i get that link ?

    can i get that link ?
  17. Replies
    3
    Views
    939

    Multiple or operator usages

    Hello i want to know it works
    LCDPORT = ((c >> 4) & 0x0f) | EN | RS;

    c is 8bit
    RS and EN is a single bit
    please anyone help me with some example thanks
  18. Replies
    2
    Views
    874

    K&R array program learning

    hello experts i am learning K&R array program i have a lot of doubts please help me

    How the output shows as digits = 2 1 1 1 1 1 1 1 1 1 ?


    #include<stdio.h>
    int main()
    {
    int...
  19. Replies
    5
    Views
    1,301

    thanks for reply Now it is okay ...

    thanks for reply
    Now it is okay ...
  20. Replies
    5
    Views
    1,301

    I was tried out it also but not worked ....

    I was tried out it also but not worked ....
  21. Replies
    5
    Views
    1,301

    Eclipse CDT-showing error

    Hello masters,
    I am beginers i installed Eclipse IDE for C/C++ Developers (Kepler Release).
    and instaled cygwin and set the path as ;C:\cygwin\bin.

    I can able to build but cant run
    when I Run...
  22. Replies
    6
    Views
    1,029

    thanks the reply i understood sir

    thanks the reply i understood sir
  23. Replies
    6
    Views
    1,029

    Thanks

    Thanks
  24. Replies
    6
    Views
    1,029

    Thanks , am clear ... whenever a character type...

    Thanks , am clear ...
    whenever a character type ,this program first decide it is a word and set state = IN(till the white space newline ,\t,) (i was expect a reverse style :rolleyes:)..

    sir i...
  25. Replies
    6
    Views
    1,029

    Word Counting program not understanding

    Hello Masters ,
    I am learning C programming from K & R text .
    i dont understand the wordcounting programing .
    How is working ?
    please help me

    #include<stdio.h>

    #define IN 1
    #define...
Results 1 to 25 of 37
Page 1 of 2 1 2