• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
Which of the following is a valid output statement in C language?
  1. display("Hello");
  2. output("Hello");
  3. print("Hello");
  4. printf("Hello");
Explanation

The valid output statement in C language among the given options is printf("Hello");.


In C programming, the printf() function is the standard library function used to display formatted output on the console.

It is part of the stdio.h header file, which needs to be included in your C program using #include <stdio.h>.

Options A, B, and C (display(), output(), print()) are not standard C library functions for outputting text to the console.

Related MCQs

آٹوکیڈ میں کون سا کمانڈ کناروں کو گول کرنے کے لیے استعمال ہوتا ہے؟
  1. Trim
  2. Fillet
  3. Offset
  4. Extend
اس سوال کو وضاحت کے ساتھ پڑھیں

سڑک کی جیومیٹری کی ڈیزائننگ کے لیے عام طور پر کون سا سافٹ ویئر استعمال کیا جاتا ہے؟
  1. AutoCAD Civil 3D
  2. MS Excel
  3. MS Word
  4. Adobe Photoshop
اس سوال کو وضاحت کے ساتھ پڑھیں

  1. Format
  2. Modify
  3. Draw
  4. Tools
اس سوال کو وضاحت کے ساتھ پڑھیں

  1. Trim
  2. Offset
  3. Extrude
  4. Fillet
اس سوال کو وضاحت کے ساتھ پڑھیں

بڑی اسکرین پر ویڈیو تصاویر دکھانے کے لیے کون سا آؤٹ پٹ ڈیوائس استعمال ہوتا ہے؟
  1. Scanner
  2. Printer
  3. Projector
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

All Rights Reserved © TestPointpk.com