Search:

Type: Posts; User: gajya

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. 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 ?
  2. 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>
    ...
  3. '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;
  4. Replies
    8
    Views
    254

    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;
  5. Replies
    8
    Views
    254

    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);
  6. Replies
    8
    Views
    254

    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++ )
  7. Replies
    8
    Views
    254

    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...
  8. Replies
    8
    Views
    254

    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...
  9. Replies
    4
    Views
    256

    following code works for me ...

    following code works for me


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

    struct node
    {
    int x;
    struct node *next;
    };
  10. Replies
    4
    Views
    256

    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 ?
  11. Replies
    4
    Views
    256

    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>
  12. Replies
    2
    Views
    210

    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"};...
  13. Replies
    1
    Views
    144

    Write and read byte at device address

    Hi

    I am trying to write program to write data into array and to readthe the values stored in Array

    For an example
    The Device has 5 registers with date & time info.
    Address 0: tens of...
  14. Replies
    6
    Views
    228

    In this case, I would like to work on my code ...

    In this case, I would like to work on my code

    When ever get function return success first pass A then array content other print stop message


    #include<stdio.h>

    #define failure 1...
  15. Replies
    6
    Views
    228

    forget all that just think that is only box and...

    forget all that just think that is only box and need to take decision

    take a look this portion

    can you guess what basic c need to complete following behavior
  16. Replies
    6
    Views
    228

    struggling to implement function

    I am trying to write the code for my hardware whose flow would be something like this


    15918


    #include<stdio.h>

    void start()
    {
  17. Replies
    3
    Views
    201

    my typing mistake #include ...

    my typing mistake


    #include <stdio.h>
    #define Y '0'
    #define N '1'


    #define A '0'
  18. Replies
    3
    Views
    201

    How to pass array to function by reference

    I have one array with value I want to pass the content of array to function by reference (pointer). I do not understand how to do that


    #include <stdio.h>

    #define Y '0'
    #define N '1'...
  19. Replies
    7
    Views
    216

    Can you tell me How it does ? My understanding...

    Can you tell me How it does ?

    My understanding

    Data = 0000 0000 (MSB to LSB)

    when i = 0

    check SDA
  20. Replies
    7
    Views
    216

    I2C implementation on 8051 microcontroller...

    I2C implementation on 8051 microcontroller



    unsigned char I2CRead ()
    {
    unsigned char i , Data = 0 ;
    for ( i = 0 ; i < 8 ; i ++) {
    SCL = 1 ;
    if ( SDA )
  21. Replies
    7
    Views
    216

    How to read one bit at one time

    let say i have one byte MSB 1010 0101 LSB I want to read one bit at one time

    here is my attempt


    unsigned char ReceiveByte(){
    unsigned char i, data=0;

    for (i = 0; i < 8; i++) {...
  22. Thank you break statement #include...

    Thank you
    break statement

    #include <stdio.h>
    int n = 3;

    int main() {
    // loop from 1 to 5
    for (int i = 0; i < 5; i++) {
  23. Not sure // C program to explain the use ...

    Not sure


    // C program to explain the use // of continue statement#include <stdio.h>


    int n = 3;

    int main() {
    // loop from 1 to 5
  24. What could be the real life example of continue statement ?

    I did google search but I couldn't found the real life example of continue statement in c programming.

    I have looked some example but I can't figure if the statement are useful in program

    Lets...
  25. Replies
    7
    Views
    197

    I can see that with my example ...

    I can see that with my example


    #include<stdio.h>
    int a = 1;

    int b = 2;

    int main()
    {
Results 1 to 25 of 56
Page 1 of 3 1 2 3