How to pause in C??

I am a beginner of C. I run the C program, but the window closes too fast before I can see anything. How can I pause...

How to copy a char array in C??

In C, I have two char arrays: char array1[18] = "abcdefg"; char array2[18]; How to copy the value of array1 to ar...

Working on code to calculate cosine with factorial sum?

I have been struggling with this code and just do not seem to grasp what I am doing wrong. The code is suppose to c...

How to check if C string is empty?

I'm writing a very small program in C that needs to check if a certain string is empty. For the sake of this questio...

syntax error before ';' token?

I wrote a quick program (Calculating wages) to help me stay up to speed. For some reason when I compile this I keep ...

How to printf “unsigned long” in C??

I can never understand how to print unsigned long datatype in C. Suppose unsigned_foo is an unsigned long, then I t...

How to printf “unsigned long” in C??

I can never understand how to print unsigned long datatype in C. Suppose unsigned_foo is an unsigned long, then I t...

Read .CSV file in C?

I Have a .csv file : lp;imie;nazwisko;ulica;numer;kod;miejscowosc;telefon;email;data_ur 1;Jan;Kowalski;ul. Nowa;1a...

GTK Timer - How to make a timer within a frame?

How do g_timer_new works? is it possible to do a char timerz[50]; GTimer *timer g_timer_start(GTimer *timer); ...

What is the difference between printf() and puts() in C??

I know you can print with printf() and puts(). I can also see that printf() allows you to interpolate variables and ...

How to code memory diagram??

I was asked to code this memory diagram: I was also given this struct: struct product { char *name; dou...

#define DEBUG 1?

I'm trying to have a debugging mode on so if #define DEBUG 1 I want to printf some variable values and if #defi...

Why does this memory address %fs:0x28 ( fs[0x28] ) have a random value??

I've written a piece of C code and I've disassembled it as well as read the registers to understand how the program ...