#include <iostream>
int main(int argc, char** args) {
int foo = foo + 4;
std::cout << foo << std::endl;
}
और एक अनुवर्ती प्रश्न, क्या इस तरह की चीज़ को रोकने के लिए एक कंपाइलर ध्वज है? मैंने पाया - कभी-कभी काम करता है, इसे पूरी तरह से रोकने के लिए बेहतर होगा।इसका क्या अर्थ है? int foo = foo + 4;
My compiler:
g++ -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
किस प्रकार की चीज़ को रोकने के लिए एक कंपाइलर ध्वज? – tkerwin
आपका प्रश्न वास्तव में क्या है? आप foo प्रारंभ क्यों नहीं करते? – mbx
'int foo = foo + 4; 'इसका मतलब कुछ भी नहीं है। जब आपने इसे लिखा था तो आपका क्या मतलब था? –