Search:

Type: Posts; User: Rahul11

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    209

    Really I made silly mistake I didn't notice this...

    Really I made silly mistake I didn't notice this is happening because of the format specifier
  2. Replies
    2
    Views
    209

    printing define value

    I have written three programs first two program are working as it supposed to do but i don't understand what's happening in last program

    Program 1


    #include<stdio.h>


    #define value 'A'
  3. Replies
    9
    Views
    625

    List content 1 2 3 #include ...

    List content
    1
    2
    3



    #include <stdio.h>
    #include <stdlib.h>
  4. Replies
    9
    Views
    625

    I completely understand pointer, dynamic memory...

    I completely understand pointer, dynamic memory allocation and structure. I am only having trouble to pass pointer to structure in function, to return pointer in function, to pass double pointer to...
  5. Replies
    9
    Views
    625

    The idea was to test the code that pass...

    The idea was to test the code that pass dynamically allocated double pointer to structure type struct to function

    so far I wrote and tested code that pass pass dynamically allocated pointer to...
  6. Replies
    9
    Views
    625

    Passing double pointer to structure

    I found below function on this page Linked List | Set 2 (Inserting a node) - GeeksforGeeks I don't how its working

    double pointer of structure being passed to this function


    /* Given a...
  7. I want to modify the value of structure member...

    I want to modify the value of structure member without modifying actual address. I have written function but It doesn't works as expected


    #include<stdio.h>
    #include<stdlib.h>

    typedef...
  8. #include#include typedef...

    #include<stdio.h>#include<stdlib.h>


    typedef struct{

    int var1;
    int var2;

    } svar;
  9. Where does structure variable store and what does it store

    I am trying to figure out Where does structure variable store and what does it store using printf statement

    I have written this code


    #include<stdio.h>#include<stdlib.h>


    typedef struct{
  10. Replies
    6
    Views
    558

    Thank you laserlight for answering my question

    Thank you laserlight for answering my question
  11. Replies
    6
    Views
    558

    Yes compiler shows following error error:...

    Yes compiler shows following error


    error: expected ':' before '{' token {
    ^




    I know default is use with switch case but this question is for my curiosity
  12. Replies
    6
    Views
    558

    can we use default keyword without switch

    I am curious to know can we use default keyword without switch ? If it can't be done. so can anyone tell why it can't be done.

    If it's possible to do so what's the problem in my code it shows...
  13. Thank you rstanley. Next time I would use better...

    Thank you rstanley. Next time I would use better name for variable
  14. I want to store value from 0 to 4 in memory...

    I want to store value from 0 to 4 in memory allocated by malloc function

    store value 0 at memory location 1
    store value 1 at memory location 2
    store value 2 at memory location 3
    store value 3...
  15. Value is not being stored at correct location

    I am trying to allocate dynamic memory for five integer to store value from 0 to 4
    as shown

    00DE2AB4 = 0
    00DE2AB8 = 1
    00DE2ABC = 2
    00DE2AC0 = 3
    00DE2AC4 = 4
  16. Replies
    8
    Views
    294

    Thanks I understood, When condition is true, the...

    Thanks I understood, When condition is true, the value of variable is being skipped in the first example
  17. Replies
    8
    Views
    294

    There is no detailed example given in the book,...

    There is no detailed example given in the book, only theoretical explanation which was not enough for me to understand. That was the reason I wrote my own code
  18. Replies
    8
    Views
    294

    I wanted to see what happens when continuous...

    I wanted to see what happens when continuous statement use in code In both code I don't understand what happens if I use continuous keyword in code.
  19. Replies
    8
    Views
    294

    Code to explain use of continue statement

    I am trying to figure out what happens when we use continue statement in code. I have written two code to see the difference but both gives same output

    consider this situation with continue...
  20. How do you remember difference between Directive, Macros and Preprocessors in C

    Directive, Macros and Preprocessors always confuse me in C. I have been reading all but I don't understand difference them

    so to understand the difference between all these I thought that it can...
  21. Replies
    4
    Views
    561

    I have written following code Just for doing...

    I have written following code Just for doing experiment I have explain all with comments


    #include<stdio.h>

    // function F get content of Y pointer and return pointer P to function
    int *F...
  22. Replies
    4
    Views
    561

    Thank you struct S *F (struct S *T){...

    Thank you


    struct S *F (struct S *T){
    return T;
    }

    S is structure Name, T is structure variable

    Is this function pass pointer to structure type struct ?
  23. Replies
    4
    Views
    561

    Type of function

    I understand four type of function in c language as following



    void foo (void) // Functin does't take any value and doesn't return any value
    void foo (int X) // Functin take value store in...
  24. Replies
    1
    Views
    336

    Function pointer problem

    Hi

    What's going wrong with code that is why printf is not printing X


    #include<stdio.h>

    void foo (void )
    {
    printf(" X");
  25. Variable and functions declarations for header file

    I have written code following code


    #include<stdio.h>

    void Wait ( unsigned int size )
    {
    unsigned int i;

    for ( i = 0; i < size; i++)
Results 1 to 25 of 51
Page 1 of 3 1 2 3