0 out of 2 rated this helpful - Rate this topic

Compiler Warning (level 1 and level 4) C4700

uninitialized local variable 'name' used

You used the local variable name without first assigning it a value, which could lead to unpredictable results.

The following sample generates C4700:

// C4700.cpp
// compile with: /W1
int main() {
   int i;
   return i;   // C4700
}

Under /clr:safe this is a level 4 warning. The following sample generates C4700:

// C4700b.cpp
// compile with: /W4 /clr:safe /c
using namespace System;
int main() {
   Int32^ bi;
   return *bi;   // C4700
}
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Error C4700
$0char antwort;$0 $0cin>>antwort;$0 $0$0 $0char ja=0;$0 $0int nein=0;$0 $0if( antwort==ja)$0 $0{$0 $0...$0 $0}$0 $0i get the error C4700 for "ja", why? because I have initialized "ja" whit "char ja;"$0 $0i am nw in c++ so please dont get angry because of my question$0 $0thanks$0
Advertisement