Search:

Type: Posts; User: shaswat

Search: Search took 0.01 seconds.

  1. signed vs unsigned value when seen in assembly code

    Hi Everyone,

    Below is the snippet of code that I was trying to execute



    typedef char s8;

    typedef unsigned char u8;
  2. Replies
    10
    Views
    8,090

    Many thanks to all the res-ponder and @rusyoldguy...

    Many thanks to all the res-ponder and @rusyoldguy thank you for these details.
    and correct me if I am wrong about the removal of keyword "register" is because modern CPU itself capable to do that...
  3. Replies
    10
    Views
    8,090

    @jimblumberg...

    @jimblumberg: Thanks, and yeah its my bad that I played with the compiler setting last night and didn't change it at all.
  4. Replies
    10
    Views
    8,090

    void before function call

    Hello Everyone,


    Greeting for the day!


    I have seen this code at some portal and thought to give it a try.
  5. Replies
    4
    Views
    4,389

    Thanks @flp1969...

    Thanks @flp1969...Never thought that function pointer can be useful in that case too..
  6. Replies
    5
    Views
    5,875

    Hi Salem, Thanks for the post, but I did not...

    Hi Salem,

    Thanks for the post, but I did not get your answer..

    Could you please explain. Any particular objective to do such level of "misdirection" (with no comments at all...at-least it is...
  7. Replies
    5
    Views
    5,875

    Sorry friend, it seems that the element ...

    Sorry friend, it seems that the element

    "itype"

    of structure "term_titem_t" are not directly assigning and being called anywhere in code. It is only been used as argument to function.
    Also...
  8. Replies
    5
    Views
    5,875

    typedef issue in c

    Greeting to Everyone,

    I have been asked by my friend the explanation of the usage and functionality of this typedef
    (highlighted as //Issue01) but it seems complicated to me as well.

    ...
  9. Replies
    1
    Views
    1,219

    bit modifier in structure

    Hello Everyone,

    Somewhere on web, I got this code example of structure (I don't remember but it was something like the snippet below):



    #include <stdio.h>
    #include <stdlib.h>
  10. Thanks mate. That help's

    Thanks mate. That help's
  11. string mismatch issue when using if condition

    Hello everyone.

    I have been trying to solve one competitive problem on Contest Page | CodeChef.
    While trying to compare two strings, I used if statement

    if(ar[i].string==ar[j].string)...
  12. Replies
    12
    Views
    8,054

    I tried "%121[RS]" and still after scan it for...

    I tried "%121[RS]" and still after scan it for first time, it prints the same string for the next 10 times.
    Few more points I tried:
    Lets say I entered "RSRSY", in that case , the output was...
  13. Replies
    12
    Views
    8,054

    Scanset issue in C language

    Hello Everyone!!


    While I was trying some online C language quiz, I was stuck in problem where the constraints was to take strings that only have 'R' an 'S' letter. I searched it online and got...
  14. Thanks for elaborating and such a great answer....

    Thanks for elaborating and such a great answer. Your answer leads me to understand more about typedef's.
  15. typedef struct vs struct declaration error in code

    Hi All,

    I was wondering that why this snippet of code gives error



    struct{
    u8 Address1;
    u8 Address2;
    }st_varib;
  16. Replies
    5
    Views
    3,006

    Probably I find the answer by myself. The ...

    Probably I find the answer by myself. The function is defined as a regular function outside the class that makes it Non-member function.

    The definition of is explain after the next page. I think...
  17. Replies
    5
    Views
    3,006

    member vs non member function in C++

    Hello,


    I am a newbie and learning C++ by myself from online. I was studying about the keyword Friend and here is the piece of sample code



    class Myclass
    {
    public:
  18. Replies
    7
    Views
    1,487

    Hi laserlight, Your answer was perfect and I...

    Hi laserlight,

    Your answer was perfect and I got your's but just wanted know from others also.
  19. Replies
    7
    Views
    1,487

    Hi, Any explanation about typecasting an...

    Hi,

    Any explanation about typecasting an arithmetic value like I asked

    if(i==(u8)4)

    What's the reason behind it?
  20. Replies
    7
    Views
    1,487

    Which one is way if(i==4) or if(4==i)

    Hi All,

    Which one is correct way



    if(i==4)
    {
    /*Do something*/
    }
  21. Replies
    1
    Views
    1,831

    Preprocessor output issue

    Here is the snippet of code. I get missing # in my output. I replaced # with the other special character i.e. "@" & "!", but then I get error.


    #define str(x) #x
    #define Xstr(x) ...
  22. how to communicate and get back data from a specific devices using C language

    I have a device that have some communication protocols and it will respond and send some specific data when somebody communicates with the device. I tried to build a C code that will send those...
  23. Replies
    2
    Views
    4,586

    clrscr function in CodeBlock

    I start working on CodeBlocks and stuck in a situation. The situation is that I want to clear my output screen every time the main function calls some other functions. To do that I use clrscr()...
  24. Replies
    1
    Views
    2,602

    C code unknown value at output

    As a begineer I write a program of adding the places of a digit.


    #include<stdio.h>#include<conio.h>

    void main()
    {
    clrscr();
    int a,b,sum=0,e,z;
    printf("Enter the digit");
Results 1 to 24 of 24