• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
Which of the following is correct syntax for defining Mathematical constant PI using preprocessor directive in C language?
  1. # define PI 3.14
  2. # define PI = 3.14
  3. define PI = 3.14
  4. None of these
Explanation

#define PI 3.14

This is the correct syntax for defining a constant using the C preprocessor directive.

It replaces every instance of PI with 3.14 before compilation begins.

Related MCQs

میگا بائٹ سے بڑی اکائی کون سی ہے؟
  1. Gigabyte
  2. Kilobyte
  3. Byte
  4. Bit
اس سوال کو وضاحت کے ساتھ پڑھیں

کون سا میل ویئر نیٹ ورک کے ذریعے خودکار طور پر ایک کمپیوٹر سے دوسرے کمپیوٹر میں پھیل سکتا ہے؟
  1. Trojan Horse
  2. Worm
  3. Logic Bomb
  4. Spyware
اس سوال کو وضاحت کے ساتھ پڑھیں

ایڇ۔ٹی۔ٹی۔پی۔ایس کی اصطلاح کا کیا مطلب ہے؟
  1. Hyper Text Transfer Protocol Secure
  2. Hyper Text Translation Protocol Service
  3. Hyper Text Translation Protocol Secure
  4. Hyper Text Transfer Protocol Service
اس سوال کو وضاحت کے ساتھ پڑھیں

کیپچا کا بنیادی مقصد کیا ہے؟
  1. To speed up website loading times
  2. To verify that the user is human
  3. To improve image quality
  4. To block internet access
اس سوال کو وضاحت کے ساتھ پڑھیں

درج ذیل میں سے کون سا پرنٹر نہیں ہے؟
  1. Pixel printer
  2. Laser
  3. Dot matrix
  4. Inkjet printer
اس سوال کو وضاحت کے ساتھ پڑھیں

All Rights Reserved © TestPointpk.com