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
-1
votes
1 answer

Ampersand "&" causing net.sf.saxon.s9api.SaxonApiException

I have a xslt stylesheet to process some XML data, provided by a legacy system. XML Sample:
noitib
  • 148
  • 1
  • 13
-1
votes
1 answer

What is the role of “&” when used with integers in python?

I mistakenly wrote the line of code, I expected it to give me an error but it returned an answer. Codx = [num for num in range(1,9) if num & 2 = 0] Print (codx) I got the answer [1,4,5,8] Then I did Print(3&2) Answer was 2 Print(5&2) Answer…
-1
votes
1 answer

Why do HTML forms convert "&" into "&"?

I've been trying to figure out why my carefully prepared "&" phrases were being turned into plain "&" phrases. I knew it was happening, but I didn't know if it was happening when they were being submitted as part of an SQL query or somewhere…
-1
votes
1 answer

C++ ampersand in function

I want to know that these definitions of functions are equal, ie there is no difference? void fun1(int **X){....} void fun2(int **&X){....} int main(){ ..... fun1(Array); fun2(Array); ..... } Or it is something change?
Ntr
  • 55
  • 2
  • 5
-1
votes
1 answer

How to replace '&' with just '&'

I'm trying to write a json to csv - using Python 3.6 - and the json contains &. How can I write just plain ampersands (&) instead of &? I've tried str.replace using a variety of escapes, and also some regex, all to no avail. Those & s…
John
  • 1
  • 1
  • 3
-1
votes
3 answers

Ampersand doesn't load in Query String - PHP

I'm passing simple query string: index.php?a=orange&apple Getting value with: $_GET['a']; it only shows orange value. i have tried $a = urlencode($_GET['a']); $rs = urldecode($a); echo $rs; // orange; but didn't work. Found similar question…
RanaHaroon
  • 445
  • 6
  • 20
-1
votes
5 answers

Ampersand(&) and scanf in C?

I have the following multiple-choice question and I cannot figure out why (A) and (C) are incorrect, any explanation would be appreciated! The only correct answer in the following question is (B). Which of the following is a correct usage of…
Nuggets10
  • 81
  • 5
-1
votes
2 answers

Parallel Processing in While Loop

I have a .sh that is reading in lines from a .txt to be used as parameters for another shell script.Every two lines process in parallel. Currently: My current code will read in ALL lines in the file (2 at a time) for the first .sh call, then ALL…
-1
votes
1 answer

How to prevent ampersand from duplicating in Export to Word RTF in MS Access

We have an Access database that has a feature to print a notification letter from a report. Sometimes, we have to use an address different from the database, in which case we use the Export - Word RTF File command to edit the address in MS Word and…
JBM
  • 63
  • 1
  • 2
  • 12
-2
votes
2 answers

c++ *(Type*) property name

void* SendMsg(void* msg) { char *result; char tmpBuf[1000]={0}; message send_msg =*(message*)msg;//? The problem is * and (*)type. (message)"parameterName"; "message" is custom made struct. I know "parameterName*" is pointer, receives…
-2
votes
3 answers

printf("%s", &b) in C prints target string. Why &b and not b?

I define b as pointer to string: char a[] = "hello"; char *b; strcpy(&b, a); So far so good (although I don't quite understand why b=&a doesn't work, considering that both a and b are pointers). Now when I want to print the string pointed to by b,…
-2
votes
2 answers

What does ampersand mean in function call?

I'm new to programming in C and I was looking at some code. I was wondering what the following means: adjust(&total, adjustmentFactor); I know that total and adjustmentFactor are both doubles, but since that this function does assign output to a…
yosoup1989
  • 11
  • 2
-2
votes
2 answers

Ampersand displayed as '&' in XML document

I'm having troubles with displaying the ampersand character inside a XML document, using PHP 5.6 (can't use PHP 7.x right now) I tried using str_replace(), preg_replace and some other functions found here: Unable to Parse ampersand in PHP string and…
-2
votes
3 answers

What does using ampersand (&) with minus operator achieve?

I'm preparing for a programming contest and I have stumbled upon the question below. void main(){ int number, result; scanf("%d",&number); result=number-(number&-number); //this is what i'm struggling to understand …
-2
votes
1 answer

Why is shortcut with `map` not working?

The two lines in this code: p ["9", "6", "4"] p %w(9 6 4) return exactly the same array ["9", "6", "4"]. But the first line with map: p ["9", "6", "4"].map(&:to_i) works fine, and the second one: p %w(9 6 4).map{&:to_i} gives: syntax error,…
skywinder
  • 21,291
  • 15
  • 93
  • 123
1 2 3
29
30