Search:

Type: Posts; User: karthik537

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Guys, Thanks a lot for your replies. could...

    Guys, Thanks a lot for your replies.

    could you please look in to this link which is most similart to my problem and requesting you to respond

    Warning "cast increases required alignment of...
  2. My question is correct grumpy. Because same kind...

    My question is correct grumpy. Because same kind of questions are there when googled, and they said about using "_attribute_ ((packed)); to the structure. But the problem here is the structure...
  3. Googled for solution but very confused among...

    Googled for solution but very confused among "_attribute_ ((packed));" and "_attribute_ ((alligned) (x)) ;", which one to use and why?
  4. Please help in solving the warning "cast increases required alignment of target type"

    I have two structures as below



    struct prefix
    {
    u_char a;
    u_char b;
    u_char c;
    u_char d;
  5. Replies
    2
    Views
    1,348

    doubt in printf

    int main()
    {

    int a = 10;
    printf("val = %lu",(unsigned long int*) a);
    return 0;
    }
  6. Doubt regarding structure padding and normal variable

    In the below structure, lets say


    struct add {

    int x;
    char y;
    };

    the size of the structure add will be 8 bytes because of structure padding concept that 3 bytes will be padded to the char...
  7. Replies
    6
    Views
    1,477

    Doubt in pointer to structure

    static int *p;

    void main()
    {
    point_update(&p);
    printf("%d",*p);
    }

    point_update(int **q)
    {
  8. Thanks laserlight!!.... So without the header...

    Thanks laserlight!!.... So without the header file, if I put the forward declaration of function add in b.c file as


    int add(int,int); without extern, will it work??
  9. Doubt in using either extern or including a header file

    Hi,

    I have 3 files as below

    a.c:


    int x(int a, int b)
    {
    return a + b;
  10. Difference between global variable and volatile

    Hello Guys,

    Am looking for a clear explanation with example to differentiate between global and volatile variables. This was part of an interview question where the guy asked:

    consider two...
  11. Frnds.... help needed

    Frnds.... help needed
  12. Thanks a lot for your answer. Conceptually.......

    Thanks a lot for your answer. Conceptually.... yes the scope varies.. so, static var in fun1() will be stored in Data Segment with the block scope .... and even the global var x will also be stored...
  13. Doubt regarding storage of a static variable

    Hi frnds.. please help me in solving my doubt

    In the below prog


    #include.......
    static int x = 10;

    main()
    {
  14. Difference between a LongInt Varible and Int Var

    If

    int x = 0;
    long int y = 0L;

    In the second stmt, why 0L... Is there any problem in assigning y to 0?
  15. Replies
    3
    Views
    2,973

    Thank u very much tater....

    Thank u very much tater....
  16. Replies
    3
    Views
    2,973

    Structure Padding in C

    struct student
    {
    int a;
    char c;
    }s1;

    Actual size of the above structure is 3 bytes(lets say int is 2 bytes).

    Is the declaration of above structure is correct or not as I...
  17. Replies
    5
    Views
    1,021

    Authors are also humans... They may make mistakes...

    Authors are also humans... They may make mistakes in their writings sometimes... Till now I didn't hear such kind of statement regarding variables anywhere....

    And I think i can post any doubt...
  18. Replies
    5
    Views
    1,021

    Those random people might be good authors as well...

    Those random people might be good authors as well that we might don't know... my point is not to argue about the author...
  19. Replies
    5
    Views
    1,021

    Storage classes

    I've read from a C book that the static and extern storage class variables are allocated memory from heap. Is it true?
  20. Replies
    3
    Views
    2,431

    Please tell me what is wrong in this....

    Please tell me what is wrong in this....
  21. Replies
    3
    Views
    2,431

    Const qualifier

    From the definition of const qualifier, that the variable value cannot be changed in the current file, but can be changed in another file, I tried to write the program but resulted in segmentation...
  22. Replies
    4
    Views
    1,368

    doubt while defining array and pointer

    ..................
    ..................
    char a[]="Hello";
    char *b="World";
    .................
    .................


    when I compiled the above program in linux using gcc -S, I found only "World" in...
  23. Replies
    6
    Views
    1,888

    yes ofcourse I want to see the assembly output of...

    yes ofcourse I want to see the assembly output of a c program... How? please help me
  24. Replies
    3
    Views
    6,933

    If you are doing unit testing of app.c then you...

    If you are doing unit testing of app.c then you need not concern about the code in the fucntion A(). You have to make ensure whether the function is getting called or not which you are doing it by...
  25. Replies
    6
    Views
    1,888

    I want see the object code in the object file..

    I want see the object code in the object file..
Results 1 to 25 of 53
Page 1 of 3 1 2 3