---
title: "VS fel"
type: "forum-thread"
url: "https://www.webforum.nu/amne/c-cpp/96018-vs-fel"
topic: "C/C++"
topic_url: "https://www.webforum.nu/amne/c-cpp"
author: "msossna"
published: "2004-01-28T21:35:12.000Z"
updated: "2004-01-29T11:36:33.000Z"
replies: 1
views: 208
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/c-cpp/96018-vs-fel"
---

# VS fel

## #1 — msossna, 2004-01-28T21:35Z

Någon som vet vad följande fel betyder:

error C2102: '&' requires l-value

I MSDN står det bara:

'&' requires l-value

The address-of operator ( & ) must have an l-value as operand.

Permalänk: https://www.webforum.nu/p/96018

## #2 — Peter S, 2004-01-29T11:36Z

Det betyder att du försökte komma åt adressen för ett uttryck som inte har någon adress, t.e.x.:

```
char s = 's';
char* s2 = &s;

cout << &(&s2);
```

 :)

Permalänk: https://www.webforum.nu/p/1262585

---

Tråden på webben: https://www.webforum.nu/amne/c-cpp/96018-vs-fel
