Questions tagged as 'c'

2
answers

How to manipulate bitwise an integer in c or ccs?

I want to change an integer variable to bit in C / CSS to pic . Ex: change some bit to turn another number.    15 = 0b00001111 - > 0b00001101 = 13.     
asked by 21.06.2016 / 01:45
2
answers

What is pointer to pointer?

How should you use pointer to pointer ? I have a hard time distinguishing what is memory address and value in memory when I try to use pointer to pointer, this seems mysterious to me. Could someone give me an explanation and an example of u...
asked by 16.10.2015 / 18:32
1
answer

What is the difference between "calloc ()" and "malloc ()"?

What does the calloc() function do that malloc() does not? Why is it barely used?     
asked by 23.01.2017 / 11:35
1
answer

What is the ":" (two points) used for in the declaration of a member of a structure?

I saw this: typedef struct { unsigned char a : 1; unsigned char b : 7; } Tipo; What does this statement mean? What is this 1 and 7?     
asked by 20.01.2017 / 13:24
2
answers

How to create a C program and use graphical Java / C # interface?

I'm studying graphical interface in C, and I realized it's very complex and tiring. So I wanted to know if there is a way to create a C program and use a graphical interface in Java or C #. With frameworks or not ...     
asked by 07.09.2015 / 20:26
2
answers

Binary search in linked list [closed]

How can I perform a binary search on a simple linked list with head? Also if it is possible to do this, if there is any special method. In the EP I can not count the number of elements in this list beforehand, I have to search and insert a cell...
asked by 26.11.2015 / 03:15
1
answer

Why can not you declare a variable within a case?

Why does not this compile? #include <stdio.h> int main(void) { int valor = 0; scanf("%d", &valor); switch (valor) { case 0: int variavel = 1; printf("%d", variavel); break; default:...
asked by 09.01.2017 / 16:02
2
answers

Using Java together with C

I'm working on a micro controller project. My source is all in C though I would like to interact with that program using Java. Is this possible? For example: The C program executes microcontroller control commands and through a graphical interfa...
asked by 15.01.2015 / 13:52
1
answer

Call functions in C from R

I need to optimize some functions that are in the C language, but using the genetic algorithm packages in R. Is there any way to call C functions in R? In matlab I know there is this possibility through mex . Does not R have somethin...
asked by 01.07.2015 / 14:16
9
answers

How to count the zeros to the right of a number?

I have a number, nnnnn000 . I must count how many zeros on the right has this number. Test Cases: 123000 zeros numbers 3 102030 zeros numbers 1 Open to suggestions!     
asked by 12.02.2016 / 21:39