C is a general-purpose computer programming language used for operating systems, games and other high performance work and is clearly distinct from C++. It was developed in 1972 by Dennis Ritchie for use with the Unix operating system.

learn more… | top users | synonyms

0
votes
1answer
10 views

What is the difference between syntax and semantics of programming languages?

What is the difference between syntax and semantics of programming languages (like C)? This question seem to be basic but I do not get the satisfactory answer yet.
1
vote
0answers
15 views

wchar_t encoding on different platforms

I faced a problem with encodings on different platforms (in my case Windows and Linux). On windows, size of wchar_t is 2 bytes, whereas on Linux it's 4 bytes. How can I "standardize" wchar_t to be ...
-3
votes
0answers
33 views

Why are the members variables of a global structure not initialized to zero

According to C standard all the global variables are initialized to 0. So why is it not applied to the structure member variables.
0
votes
2answers
27 views

free() char with assigned value before call strdup()

I want to set mixer device from gtk_entry with this form "/dev/mixer:line" or "/dev/mixer:cd". User must to entry in this format mixer device settings: /dev/mixer:line or: /dev/mixer:cd For this ...
0
votes
0answers
15 views

Callback on sockets in linux

Is there any way to associate callback functions with sockets in Linux? For example, After connect(s, (struct sockaddr *)peeraddr, sizeof(*peeraddr)) function has connected client with server, is ...
-3
votes
2answers
27 views

Can I mutate any element of an array by making it equal to any integer variable declared but not initialized?

Code: #include<stdio.h> #include<conio.h> int main() { int a, b, c, d,t; int arr[8]={8,6,5,6,7,8,7,8}; ...
-5
votes
0answers
34 views

How does rounding work for float variables in C language?

can someone explain me the way how the following program executed. main() { float a=.7; clrscr(); if("a<.69999999") printf("first\n"); else printf("second\n"); if(a<.69999998) ...
1
vote
0answers
13 views

GDB + Core dump file generated by another compiler

I am running an application on a Embedded board (Linux kernel 2.6.39.2). The application is writen in C and compiled by a toolchain with core-dump flag (-g). When it crashes (Segmentation Fault) it ...
0
votes
1answer
23 views

Different performance between sendto and recvfrom

I have noticed that there is a difference of performance between sendto and recvfrom (UDP). I send about 100Kbytes from a server to a client, using WiFi (the estimated bandwidth is about 30Mb/s in ...
0
votes
0answers
9 views

Not getting output to the serial monitor of the Arduino IDE from the getFlow function

So I hacked at a getFlow function for the Arduino sketch I am working on, and I am getting output of the function in the console of the iPhone, but when I hook up the computer to the Arduino, and open ...
0
votes
3answers
40 views

I/O in C Errors

I'm trying for hours to find the answer for this question i've got in university. I tried running this with writing a file with two lines of : hello world and it reads the file perfectly, So i cant ...
0
votes
0answers
11 views

Is there a method, other than enumeration, to get sockets for many IrDA devices when devices all have same deviceID?

Since posting my original question about enumerating multiple devices, I have discovered the reason multiple enumerations were not occuring; The devices all have the same deviceID. With this ...
2
votes
0answers
24 views

Number optical disc drives in C like drutil does for OS X command line

Optical disc device names (examle: /dev/disk4) are a bit weird on Mac OS X. Unlike on other OSs, they belong to the mounted media, not the drive so only exist when a disc is inserted. Additionally ...
0
votes
1answer
20 views

Sharing OpenCL Kernel Data

I have 2 OpenCL kernels, run_kernel and apply_kernel that I want completed sequentially one after the other, a few times. The output of run_kernel contains some of the input for apply_kernel, but I'm ...
3
votes
2answers
111 views

How to pass a struct member as a pointer in a function

First of all, I would like to say that I've exhaustively searched for the answer in this forum before post this question, but I didn“t find any answer. OK, the problem is that i have a struct that is ...

1 2 3 4 5 6840
15 30 50 per page