Questions tagged [ampersand]

An ampersand (or epershand; "&") is a logogram representing the conjunction word "and". This symbol is a ligature of the letters in et, Latin for "and".

The word ampersand is a conflation of the phrase "and per se and", meaning "and [the symbol which] by itself [is] and".

445 questions
-2
votes
1 answer

converting "&" in C to C#

Some C code #include aes.h void encryption(unsigned char aes_key[16], unsigned char _buff[16], unsigned char _iv[16]){ unsigned long encrypt = 1; unsigned char output[]; AES_set_encrypt_key(aes_key, 128, &key); for(i = 0; i > 16 ; i ++){ …
gforce1992
  • 11
  • 2
-3
votes
2 answers

Bitwise operators:- Ball, carrot, ampersand, tilde

I want the step by step explanation of the following code: print(1 | 0 ^ 1 & ~0) I tried with the output bit (output with first and second bit) and got the answer as 0. The tilde function got me hooked up for some time I found it a bit hard. The…
user20349571
-3
votes
2 answers

C++ Why am I getting this output. (Greenhorn here)

So in the following bit of code, I've been trying to figure out as to why the output of the code comes out to be... X = 2 and Y = 2 when I originally thought it would be x = 1 and y = 1. I'm still a lil mind boggled with C++ coming into the…
-3
votes
1 answer

If else statement not working JAVA

The line starting the if statement is causing me issues. When I run it it will ask me my gender, I say boy and it says 'you cannot enter'. It doesnt even ask for the age! import java.util.Scanner; class Apples { //////Main Method public…
RoseHaggar
  • 39
  • 3
-4
votes
0 answers

How do I write the VBA code for a "&" that is in the cell as a text value, which I need the code to save the file as cell value

Example cell A1.value= "StreetName & OtherStreetName" (as text) Save file as A1.value The cell may or may not have the "&" in the cell. Most of the time it does not and my code works fine, but when it is in the cell it reads the "&" as part of the…
NOUSE94
  • 1
  • 2
-4
votes
2 answers

The address of a variable can be directly accessed by Ampersand, so why do we use pointers?

The address of a variable can be directly accessed by Ampersand.Then why do we use pointers. Isn't that useless? I have used ampersand and pointer and obtained the same output. #include using namespace std; int main() { int score…
HMS
  • 96
  • 1
  • 2
-4
votes
1 answer

What does a single ampersand mean in a PHP conditional statement?

The following code uses a single & in a conditional check. What does the single ampersand mean there? if( $some_array_or_other_var & SOME_CONSTANT_VARIABLE ){ //do something here } It does not look like a reference, that's what confuses me.
Abraham Tugalov
  • 1,902
  • 18
  • 25
-5
votes
4 answers

Why is ampersand used in front of these variables?

I found the following sample code, demonstrating the use of sscanf() on TutorialPoints: #include #include int main() { int day, year; char weekday[20], month[20], dtm[100]; strcpy( dtm, "Saturday March 25 1989" ); …
CodyBugstein
  • 21,984
  • 61
  • 207
  • 363
-6
votes
1 answer

Ampersand in innerHtml() not being read correctly and validating in JS

I just realized I screwed up the original HTML - the icon classes should not have been originally on the code. Now I understand the downvoting - along with the general sloppiness of the javascript. I've modified the HTML, making it what it should…
David
  • 15
  • 12
1 2 3
29
30