Search:

Type: Posts; User: abhi143

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: School Record

    by abhi143
    Replies
    6
    Views
    353

    Thank you laserlight and salem okay So I made...

    Thank you laserlight and salem

    okay So I made a list just to store student fees.


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

    struct node{
    int Fees;
    struct node *next;
  2. Thread: School Record

    by abhi143
    Replies
    6
    Views
    353

    School Record

    I want to write a C program that stores the records of student studying in school. I would like to take less memory to store record

    format for record

    Name :
    Class :
    Fees :
    Year :
    ...
  3. That I know malloc allocate memory at run time...

    That I know malloc allocate memory at run time but again there is sentence " allocate memory at run time " That's not clear for me
  4. What's meaning of allocate memory at Run time

    When we write a program, we build and compile it, then the program runs on the PC, which is called the run time.

    we say allocate memory at RUN time, This confused me a lot, What's meaning of...
  5. Can we modify the const qualifier with volatile

    constant qualifier indicate that value of variable will not change while volatile variable indicate that value of variable may be change

    Can we modify the const qualifier with volatile?
  6. compile time means that we have written the...

    compile time means that we have written the program and we have to do compile it to check the error. Run time means that the program has been compiled and now it will run on the device

    Whenever...
  7. when do you think dynamic memory is useful instead of static memory ?

    I am looking for example that prove dynamic memory will be useful instead of static memory. Dynamic memory is allocated at run time where as static is allocated at compile time.

    I found example...
  8. Replies
    2
    Views
    270

    How to avoid Structure Padding in C?

    #include <stdio.h>

    struct point
    {
    int x;
    char y;
    float z;
    }var;
  9. That's what I am trying to do it ? so can you...

    That's what I am trying to do it ?

    so can you give idea , pesudo code be batter
  10. so can you give me idea How it can be achieve...

    so can you give me idea How it can be achieve without sorting

    in simple way if i ask to someone who doesn't have programming knowledge how his brain work to find repeated number, what does he...
  11. my second option is sorting because I don't know...

    my second option is sorting because I don't know much about it
    I have practiced with basics It would to early to jump on sorting method, ofcourse I will learn but not now. so that's why i want to...
  12. just for basic understanding, do you know how...

    just for basic understanding, do you know how that algorithm can be implement in program ?

    Note : not asking complete program just asking process or pescudo code
  13. How to find repeated number in the sequence

    I have no idea how to write program to find repeated number in the given sequence

    Numbers[ ] = [ 6, 4, 2, 1, 3, 1 ]

    Program output : Number 1 repeats 2 times

    My attempt to make algorithm ...
  14. Replies
    1
    Views
    212

    Embedded is the combination hardware and...

    Embedded is the combination hardware and software,
    How do you practicing c/c++ ?
    Do you have any development board ?
    Which micro you were asking , there are many 8051, PIC, ARM ?

    There are so...
  15. Replies
    5
    Views
    414

    As much as I have seen, we keep the micro in the...

    As much as I have seen, we keep the micro in the header file. So I created two files main.c other.h

    What could be best example for #ifdef, #if, #defined, #else and #elseif directives ?
  16. Replies
    5
    Views
    414

    I do not understand what should be in main...

    I do not understand what should be in main function that's why left main empty. I don't found complete code that's why tried with my own code
  17. Replies
    5
    Views
    414

    How to use conditional?

    I have seen in many link there is more theoretical description about preprocessor

    C Preprocessor and Macros


    I want to experiment by writing some code


    #include <stdio.h>#include "other.h"
  18. Replies
    5
    Views
    406

    What you said in post 2 is given in page integer...

    What you said in post 2 is given in page integer types" table

    suppose we want to store number -32768 to 32767


    #include<stdio.h> int main(void)
    {
    short a = 32767;
    printf("max...
  19. Replies
    5
    Views
    406

    That information given on this page C syntax -...

    That information given on this page C syntax - Wikipedia




    Size qualifiers – short, long
    Sign qualifiers – signed, unsigned
    Data types - int, char, float, double

    <Sign qualifiers >...
  20. Replies
    5
    Views
    406

    Variable size and range

    I am having trouble to understanding this combination to store variable. I do not understand which one should be use for specific reason
    let's suppose if I want to store integer number then I...
  21. Okay so I will leave it here I was looking...

    Okay so I will leave it here

    I was looking some sample to create basic scheduler in c programming.
  22. I am trying to run code given in the example...

    I am trying to run code given in the example GitHub - EmbeddedApprentice/TaskTurner: A first, very short beginning for the TaskTurner.

    When I unzip folder I get only three file taskrunner.h...
  23. laserlight I did changes #include...

    laserlight

    I did changes

    #include<stdio.h>
    //#include "../include/errors.h"
    #include<windows.h>
    #include "../include/tasks.h"
    #include "../include/taskrunner.h"
  24. I need help to run sample code from internet

    I am trying to run sample code on my PC

    I have following three files taskrunner.h task.h runtask.c


    #ifndef TASKRUNNER_H#define TASKRUNNER_H
    int taskrunner(Task * TaskList, unsigned int...
  25. Replies
    8
    Views
    739

    This code compile #include ...

    This code compile

    #include <stdio.h>
    #define PI 3.1415
    main()
    {
    printf("%f",PI);
    }

    but I want to use #define pre processor directive in program
Results 1 to 25 of 127
Page 1 of 6 1 2 3 4