Questions tagged as 'c'

3
answers

Compile C in Sublime Text

I'm using Windows , and I need to know how to compile programs written in C in this editor. No ubuntu is easier, but in Windows 8.1 I do not know how to do it. I am using Sublime Text 2 because it is my preferre...
asked by 03.06.2015 / 19:24
2
answers

How to hide a string in C, so it is not readable in compiled code?

I have a string Hello World , but I do not want to save it as Hello World in C, I would like to save it as some base64, aes or binary value, or similar, so that it would not be readable in code . How can I save this string, and r...
asked by 21.07.2016 / 20:45
3
answers

Factorial not being calculated

   Make a program to read an array A of the vector type with 15 elements. Construct a matrix B of   same type, each element of matrix B being the factorial of the corresponding element of matrix A.   Display the matrices A and B. I tried to...
asked by 24.09.2015 / 16:27
2
answers

Why can not I access the integer vector in the main () function?

I can not access the positions of the integer vector that I loaded in the function loads. In that function I can correctly access the data with: printf("%d\n", n[i]); But in the function main() , below where I call the function loads,...
asked by 07.10.2018 / 15:52
2
answers

Do (Cast) the return of Malloc (), Calloc () and Realloc () - C

According to the discussion Do I cast the result of malloc? , in C it is not recommended or correct to do the cast of the return of Malloc (). Does this also apply to the Calloc () and Realloc () functions? Taking advantage, is the correct ta...
asked by 31.12.2018 / 14:57
1
answer

How to perform operations with really large numbers in C / C ++?

How to perform sum operations with really large numbers? Numbers that can reach 50 or 1000 digits. Do I need to install any library? How to install this library on ubuntu? Can you post an example of the code by adding the two values below?...
asked by 02.04.2017 / 20:26
1
answer

Return 0 on Linux and Windows

I'm starting the ADS course and my programming teacher insists on using return 0 at the end of the function. Most use Windows, I realized that return 0 is required in Windows but in Ubuntu (which is what I use) I do not put retu...
asked by 01.09.2017 / 04:57
1
answer

Does a 'break' within two 'for' actually work as a continue?

If by chance I have break within two for , as in the example below: for(int i = 0; i < n; i++) { for(int j = 0; j < m; j++) { break; } { break will not cause the program to exit the two for...
asked by 10.11.2015 / 05:52
3
answers

How to calculate the product of the elements of an array in C

How do I multiply values of a vector of integers by each other in C. I have values inside an array eg [1,2,3,4], I want to multiply one by the other, resulting in 24. p>     
asked by 12.02.2014 / 18:02
2
answers

C ++ - Stopping condition in repetition structure

How to place this code in a repeat structure so that after the calculation the "Type S to exit or C to continue" option is shown? #include <iostream> #include <string.h> #include <locale.h> #include <stdio.h> #include &...
asked by 11.09.2015 / 10:05