aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Programming Languages - Java and C Fundamentals
  • See the code below and select the correct answer: #includ...
Multiple choice technology programming languages

See the code below and select the correct answer: #include main() { int i; printf ("enter integer: "); scanf ("%d",&i); printf ("You have entered: %f ", i); return (0); }

  1. Will not compile

  2. Will compile but not run

  3. Will give an output of 1

  4. Will give an output of 1.000000

Reveal answer Fill a bubble to check yourself
B Correct answer

Keep practicing — related questions

  • Note the following code and then select the correct answer: #include main() { int i; printf ("enter integer...
  • main(){ int i=5; char c; scanf ("%d", &c); printf("Here"); printf ("%d ", i);}For scanf in standard input t...
  • what will be the output?? int main(int c) c=1; while(1); c++; printf("%d",++c); return 0; }
  • See the code below and select the correct answer: #include #include #include main() { clrscr(); int i; prin...
  • #include int main() { printf("%d %f",6/4,6/4); }
  • #include int main() { int main=7; printf("%d",main); }
  • #include <stdio.h> int i; void increment( int i ) { i++; } int main() { for( i = 0; i < 10; increment( i ) ...
  • Code: #include int i; void increment( int i ) { i++; } int main() { for( i = 0; i < 10; increment( i ) ) { ...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy