Home / MCQ Bank / Computer
Computer File Input Output Difficulty: Medium

What will be the output of the following C code considering user typed jkl? #include <stdio.h> int main() { char n[20]; fgets(n, 19, stdin); ungetc(n[0], stdin); printf("%s\n", n); return 0; }

Select the correct option to test your answer:

More Computer Questions

What is the output of the following code: int square(int x) { return x * x; } int main() { cout << square(3) + square(2); } in C++? What is the worst case time complexity of gnome sort? If you want to insert some slides from other presentation into current one choose What will be the output of the following C++ code? #include <iostream> #include <complex> using namespace std; int main() { complex <double> cn(3.0, 5.0); cout<<"Complex number is: "<<real(cn)<<" + "<<imag(cn)<<"i"<<endl; return 0; } In time series analysis, what does the term "multicollinearity" refer to?