Which of the following is a valid output statement in C language?
- display("Hello");
- output("Hello");
- print("Hello");
- 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
ایپلیکیشن لینگویج کو کس قسم کی زبان بھی کہا جاتا ہے؟
- High-level language
- Low-level language
- Machine language
- Assembly language
اس سوال کو وضاحت کے ساتھ پڑھیں
میک آپریٹنگ سسٹم کو _____ نے تیار کیا ہے؟
- Samsung
- Microsoft
- Apple
- IBM
اس سوال کو وضاحت کے ساتھ پڑھیں
ایک مرتب کیا ہے؟
- A compiler is a special program that processes statements written in a particular programming language and turns them into machine language
- A compiler is a language providing very efficient execution
- A compiler does a conversion line by line as the program is run
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
درج ذیل میں سے کون سا اینڈرائیڈ کے آفیشل ورژن کا کوڈ نام نہیں ہے؟
- Muffin
- Cupcake
- Donut
- Lollipop
اس سوال کو وضاحت کے ساتھ پڑھیں
کسی ویب سائٹ کو صارف کی شناخت یاد رکھنے میں کون سی چیز مدد دیتی ہے؟
- Cookies
- Firewall
- Cache
- Compiler