Questions tagged as 'c'

2
answers

What is the difference between "NULL", "\ 0" and 0?

Both are worth zero. Can I always use the 3 interchangeably?     
asked by 16.01.2017 / 11:51
1
answer

Non-standard C libraries ANSI

I am aware that, a C program in the ANSI standard can be compiled in both Windows on both Linux. But when it comes to using sockets ? Is this not part of the ANSI C pattern? Because when I use sockets in Windows, I have to use a libra...
asked by 12.08.2015 / 14:54
2
answers

Actual difference between operator point (.) and operator arrow (-) in C?

What is the real difference between the two operators. I know that the (->) operator is used when the variable is a pointer, and that it is equal to (*ptr).membro . Well, if I declare a pointer of the type of a structure, I mu...
asked by 19.02.2015 / 03:29
2
answers

How do C hands work?

1st What is the difference between declaring: char* s and char *s ? 2nd Is it always necessary to use the malloc function whenever declaring a pointer ? Example: char* s = malloc(sizeof(char)); //ou apenas.....
asked by 30.12.2015 / 20:34
2
answers

How to create a file.h?

What is a arquivo.h and what improvement does it bring to the C ++ program?     
asked by 27.07.2015 / 03:36
4
answers

Working with values that greatly exceed the long (64 bit)

How are operations stored with numbers that exceed the limit values of type long and double ? How are the four primary operations done with these numbers (sum, subtraction, multiplication, and division)?    Context It is co...
asked by 29.02.2016 / 18:49
3
answers

What is a static function for?

What is a function with keyword static ? I know that declaring a local variable as static within a function will work as if it were a global variable, and a static function how does it work? And when should you use a sta...
asked by 01.12.2017 / 18:18
2
answers

C Operator Precedence Table

In C why does y = (y=2 , y+3) return 5 if + has priority over = and , ?     
asked by 22.03.2015 / 18:46
1
answer

comparison of floats

This program allows you to check which of the three floats is the largest, but you are ignoring the decimal places. For example if I put the values 1.4 , 1.6 and 1.5 , the program tells me that the largest is the 1.4...
asked by 12.08.2015 / 13:14
1
answer

What does "\" mean in the C ++ header?

I was looking at the MFC header and I do not know what the "\" character means in this context: #define BEGIN_MESSAGE_MAP(theClass, baseClass) \ PTM_WARNING_DISABLE \     
asked by 28.09.2015 / 23:21