Page 1 of 1

What will be the output of the following C++ codes?

Posted: Wed Jul 13, 2022 7:51 pm
by answerhappygod
i.
#ifndef Exercise_H #define Exercise_H int number = 842; #endif
ii.
Check this: C++ Books | Computer Science MCQs
advertisement


var adpushup = window.adpushup || {};
adpushup.que = adpushup.que || [];
adpushup.que.push(function () {
if (adpushup.config.platform === "MOBILE") {
adpushup.triggerAd("fdd9bf87-4faf-4493-82b4-e5538b31931a");
} else if ((window.outerWidth <= 768) || (window.outerWidth == 0)) {
adpushup.triggerAd("fdd9bf87-4faf-4493-82b4-e5538b31931a");
}
});
#include <iostream> #include "exe.h" using namespace std; int main(int argc, char * argv[] ) { cout << number++; return 0; }
a) 842
b) 843
c) compile time error
d) 845