| description | Learn more about: C26494 VAR_USE_BEFORE_INIT | |
|---|---|---|
| title | C26494 | |
| ms.date | 03/22/2018 | |
| ms.topic | reference | |
| f1_keywords |
|
|
| helpviewer_keywords |
|
Variable '%variable%' is uninitialized. Always initialize an object.
#include <iostream>
void function()
{
int myVal; // C26494, Variable is uninitialized
std::cout << myVal; // C6001
}