There are many Wifi device on market such as PC, smart phone, smart watch wifi dongle for which c code is written.
What are common things in all devices that should be know when writing code. I...
Type: Posts; User: abhi143
There are many Wifi device on market such as PC, smart phone, smart watch wifi dongle for which c code is written.
What are common things in all devices that should be know when writing code. I...
Hi
I write code for microcontroller I want to write my own scheduler for microcontroller. But I am not getting any idea even after searching a lot
scheduling is process by which operating...
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;
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 :
...
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
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...
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?
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...
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...
#include <stdio.h>
struct point
{
int x;
char y;
float z;
}var;
That's what I am trying to do it ?
so can you give idea , pesudo code be batter
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...
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...
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
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 ...
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...
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 ?
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
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"
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...
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 >...
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...
Okay so I will leave it here
I was looking some sample to create basic scheduler in c programming.
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...
laserlight
I did changes
#include<stdio.h>
//#include "../include/errors.h"
#include<windows.h>
#include "../include/tasks.h"
#include "../include/taskrunner.h"