Questions tagged as 'operadores'

2
answers

How to 'increment' in variables

In the code below my variable y asks for the user to enter values until y reaches 10, I make the storage in the variable x and the last information entered is currently stored (which shows at the end of the code) what I would like to know it is...
asked by 06.10.2014 / 18:28
1
answer

Increment and decrease do not work in expected order

int main(){ int i=5; printf("%d%d%d%d%d",i++,i--,++i,--i,i); }    Output: 45555 Why this output? I did not understand the reason for this exit correctly.     
asked by 12.12.2017 / 18:36
2
answers

Operator "!=" does not work in my code?

I have a part of my program that does several checks when the button is clicked and one of these checks is: it takes the value entered in textboxRankTecnica and has to buy with the array ranksAceitaveis . If it enters a value tha...
asked by 26.02.2017 / 00:20
2
answers

How to use the "when" operator of LESS?

I gave a quick search on the less site to see how to use it, but I did not succeed, so I wanted to know how the LESS! operator works! Examples: box-shadow(@style, @c) when (iscolor(@c)) { -webkit-box-shadow: @style @c; box-shadow:...
asked by 14.04.2016 / 15:59
2
answers

How do bit operators work?

I have the following code: volatile long Hex_To_int(long Hex , char bits) { long Hex_2_int; char byte; Hex_2_int = 0 ; for(byte = 0 ; byte < bits ; byte++) { if(Hex& (0x0001 << byte)) Hex_2_int += 1*(pow(2,byt...
asked by 07.10.2015 / 00:49
1
answer

Difference between "Object (myobject)" and "(myobject as Object)"?

I wanted to know the difference between using Object(meuobjeto) and (meuobjeto as Object) based on the code below: var mc:MovieClip = new MovieClip(); //Um objeto MovieClip trace(mc as String); //null trace(mc as MovieClip); //[...
asked by 29.10.2014 / 18:56
2
answers

What are the operators | &?

I was analyzing a code and found some operators I do not know about: | , & , >> and% with%. What is the functionality of these operators? bits = h1 << 18 | h2 << 12 | h3 << 6 | h4; o1 = bits &g...
asked by 04.03.2015 / 14:28
1
answer

What is the operator for in the context of virtual memory paging?

I'm seeing the virtual memory implementation and I have this code: #define INDEX_FROM_BIT(a) (a / 8*4) #define OFFSET_FROM_BIT(a)(a % (8*4)) static void set_frame(u32int frame_addr) { u32int frame = frame_addr/0x1000; u32int idx =...
asked by 15.12.2015 / 22:35
1
answer

How does Python determine if a value is true?

I have the following question: >>> a = [200,100] >>> a[True] Output >>> 100 >>> a = [200,100] >>> a[False] Output >>> 200 Why does this happen? Is the first value f...
asked by 21.01.2018 / 19:05
2
answers

Memory Allocation and Pointers

I'm implementing a Sudoku, but I'm having a hard time filling it out. #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <math.h> #include <stdio_ext.h> typedef struct grid_info {...
asked by 03.09.2015 / 06:11