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
کمپیوٹر کا جسمانی حصہ کسے کہتے ہیں؟
- Software
- Hardware
- Both A and B
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
کس قسم کے ٹرمینل میں اپنا پروسیسر ہوتا ہے اور جو آزادانہ طور پر حساب کتاب اور ڈیٹا پراسیس کر سکتا ہے؟
- Dumb Terminal
- Smart Terminal
- Intelligent Terminal
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
سافٹ ویئر یا ہارڈ ویئر میں خرابی کو بگ کہا جاتا ہے۔ اس کے لیے متبادل کمپیوٹر جرگن کیا ہے؟
- Glitch
- Squid
- Slug
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
سمورغ نامی سپر کمپیوٹر کس ملک نے تیار کیا ہے؟
- China
- Japan
- Iran
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
سی پی یو کے اندر کون سی میموری نصب ہوتی ہے؟
- RAM
- ROM
- Register
- None of these