Questions tagged as 'c'

3
answers

Error Segmentation fault (core dumped)

I'm getting the following error message in my code:    Segmentation fault (core dumped) Another thing is that when I performed the same operation as preenche on main , using ficha.name instead of dados , the syst...
asked by 01.03.2015 / 23:59
2
answers

What is the difference between static and dynamic linking?

Recently, researching why small codes in Go have a much larger executable than the same C-generated code, I've read one response stating that the reason is for Go to use linking static , unlike C, which uses linking dynamic . What exact...
asked by 26.08.2016 / 22:25
1
answer

What's the difference between #include filename and #include "filename"?

Why we use #include <filename> and #include "filename" When to use each?     
asked by 04.01.2017 / 13:36
1
answer

Why do we use parentheses in a pointer declaration?

What's the difference between these two statements? int* array1[10]; int (*array2)[10]; Why are there parentheses in the second?     
asked by 10.01.2017 / 11:36
1
answer

Why are there two const variables in the variable declaration?

I can do this: const int* const objeto = &x; Why are there two const ? What is the function of each one?     
asked by 15.03.2017 / 12:25
1
answer

Why is the index of arrays and other sequences starting at zero?

Why array does not start with 1. Is there any technical reason to have adopted 0?     
asked by 13.02.2017 / 15:10
2
answers

Algorithm in C to convert arabic number to roman number

How to do this conversion? It does not have to be the algorithm ready, I wanted a help at least in logic.     
asked by 26.05.2014 / 00:41
2
answers

Is it possible to create an application in C / C ++ for Android?

I want to create an Android application using C or C ++ language. What are the advantages and disadvantages of this?     
asked by 01.06.2017 / 19:59
1
answer

Why does a char array support a character like 'ç' and a variable char not?

Even though the char variable supports only the ASCII characters, why does the following code have the normal output when a value is entered with characters that are not part of ASCII as accented characters? #include<iostream> using name...
asked by 19.04.2015 / 19:06
5
answers

Removing the "\ n" of a string read using fgets ()

Generally when using the function fgets () it reads the string but is sensitive to Enter, how to read the string being to add the "\ n" ??     
asked by 16.09.2014 / 00:31