Home / MCQ Bank / Computer
Computer Classes And Objects In C Plus Plus Difficulty: Medium

What will be the output of the following C++ code? #include <iostream> #include <string> #include <cstring> using namespace std; int main() { string s('a'); cout<<s; return 0; }

Select the correct option to test your answer:

More Computer Questions

Which element defines a title of the Work? Amazon . . . . . . . . provides developers the tools to build failure resilient applications and isolate themselves from common failure scenarios. What will be the output of the following C code? #include <assert.h> #include <stdio.h> void main() { int n=12; char str[50]=""; assert(n >= 10); printf(" output: %d\n", n); assert(str != NULL); printf("output: %s\n", str); } DCF is an abbreviation for . . . . . . . . Choose the statement which is incorrect with respect to dynamic memory allocation.