Search:

Type: Posts; User: gajya

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. I have tried to write code, see post 1 But having...

    I have tried to write code, see post 1 But having trouble making full code So I asked how to make a function for list
  2. My ATTEMPT to solve problem 16008 I have...

    My ATTEMPT to solve problem

    16008

    I have already shown my code. I have only problem with code
  3. Function to add node between first and last node

    How to make function that can add the new node between fist and last node

    for example

    20 40
    add new value 30

    list 20 30 40

    add new value 50
  4. Replies
    2
    Views
    333

    Every function call new node will add to list....

    Every function call new node will add to list. The pointer will always point to the address of the next node. when node is last node pointer will point to null. But i don't think my function is doing...
  5. Replies
    2
    Views
    333

    Add not after previous node

    Hi,

    I want to make function that add new node after previous node. if the list is empty add the first node and then add new node after previous node


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

    ...
  6. Replies
    6
    Views
    509

    alright I am converting logic into code but I am...

    alright I am converting logic into code but I am surprised that you did not use the else if statement


    #include<stdio.h>

    int main ()
    {
    int n = 3;

    if ( n == 1 )
  7. Replies
    6
    Views
    509

    I shown my best making diagram I don't even know...

    I shown my best making diagram I don't even know if this can happen real once I get the idea, I will try to make more diagrams




    15999
  8. Replies
    6
    Views
    509

    Flow diagram If Elseif - Else statement

    I have made it flow diagram and I want understand how it would be look in code structure

    15998

    What would be the structure of the code for this function flow diagram ?


    #include<stdio.h>...
  9. Replies
    1
    Views
    173

    Set, Clear and Toggle a specific bit

    Are all my operations correct if I want to Set, Clear and Toggle a 7 bit

    clear 7th bit

    1010 1001 byte
    0000 0000
    ---------- AND logic
    1000 0000
  10. Replies
    6
    Views
    475

    it works if I declare function before main

    it works if I declare function before main
  11. Replies
    6
    Views
    475

    ohh This means that I can only use the global...

    ohh This means that I can only use the global variable in the same file where it is declared. In this program, I have declare x in main.c , so I cannot use x in another file foo.c.


    If I want to...
  12. Replies
    6
    Views
    475

    But my experiment is not giving such a result ...

    But my experiment is not giving such a result

    result

    foo.c: In function 'foo':
    foo.c:3:2: error: 'x' undeclared (first use in this function)
    x = 0;
    ^
    foo.c:3:2: note: each undeclared...
  13. Replies
    6
    Views
    475

    Scope of global variable

    I have a doubt about the global variable. The global variable is the variable that is declare out side of function


    #include<stdio.h>
    int x; // global variable
    void foo ()
    {
    x = 0;
    ...
  14. address of person : 0061FF24 what Ptr points...

    address of person : 0061FF24

    what Ptr points to: 0061FF24

    address of Ptr->code = 0061FF24
    address of Ptr->age = 0061FF28

    memory location of all three variables are same why ?
  15. big thanks I have query I think there is only...

    big thanks I have query I think there is only three variables in code Ptr,
    Ptr->age and
    Ptr->code

    What is person ? Is it a variable that occupy memory ?


    #include <stdio.h>
    ...
  16. 'Ptr' is used uninitialized in this function

    I do not understand if I declare the pointer as a structure variable, why is become uninitialized ?

    program code


    #include <stdio.h>
    #include <stdlib.h>
    struct person
    {
    char code;
  17. Replies
    8
    Views
    549

    following approach work for me ...

    following approach work for me


    #include<stdio.h>

    int read (unsigned int N, unsigned int *p);

    int read (unsigned int N, unsigned int *p)
    {
    int i;
  18. Replies
    8
    Views
    549

    I amtrying to fix some issues why code...

    I amtrying to fix some issues

    why code doesn't print the correct value stored in the first memory location of array


    #include<stdio.h>

    int read (unsigned int N, unsigned int *p);
  19. Replies
    8
    Views
    549

    My attempt #include //...

    My attempt


    #include<stdio.h>

    // Function to read one byte
    void ReadByte (unsigned char *byteAddress)
    {
    //loop to read 8 bits
    for ( n = 0; n <8; n++ )
  20. Replies
    8
    Views
    549

    I have done #include // Function...

    I have done

    #include<stdio.h>
    // Function to read one byte
    void ReadByte (unsigned char *N)
    {
    //loop to read 8 bits
    for ( n = 0; n <8; n++ )
    {
    /*read each bit...
  21. Replies
    8
    Views
    549

    Read one and multiple bytes in function

    Hello

    I need help in my embedded project. assume array is loaded with five bytes so we know the location of each byte and data stored in the location.

    byte 1 = location for byte1 6422296 = 00...
  22. Replies
    4
    Views
    467

    following code works for me ...

    following code works for me


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

    struct node
    {
    int x;
    struct node *next;
    };
  23. Replies
    4
    Views
    467

    I want to add two nodes into linked list and then...

    I want to add two nodes into linked list and then print out them

    I wanted to know whats wrong with my code Why it's not printing two nodes. Whats wrong with code ?
  24. Replies
    4
    Views
    467

    My code is not working why ?

    My code is not working as it supposed to do. code compile with no errors but it doesn't give the output as expected

    What's wrong with the code


    #include<stdio.h>

    #include<stdlib.h>
  25. Replies
    2
    Views
    423

    How to send 4 bit data

    Hi

    assume I have 8 bit string and I want to send higher nibble to LCD then want to send lower nibble bit to LCD


    #include<stdio.h>

    void main (){

    unsigned char buffer[8]= {"12345678"};...
Results 1 to 25 of 69
Page 1 of 3 1 2 3