In which header file NULL macro is defined ? 

This question was previously asked in
NIELIT Scientific Assistant IT 5 Dec 2021 Official Paper
View all NIELIT Scientific Assistant Papers >
  1. stdio.h and stddef.h 
  2. iostream.h 
  3. string.h 
  4. pre-processor

Answer (Detailed Solution Below)

Option 1 : stdio.h and stddef.h 
Free
NIELIT Scientific Assistant Quantitative Aptitude Mock Test
0.9 K Users
20 Questions 20 Marks 30 Mins

Detailed Solution

Download Solution PDF

The correct answer is option 1: stdio.h and stddef.h

Key Points

  • NULL is a macro representing a null pointer constant.
  • It is defined as #define NULL ((void*)0) in C.
  • In C language, the NULL macro is defined in both:
    • <stdio.h>: Standard Input Output header
    • <stddef.h>: Standard Definitions header

Additional Information

  • iostream.h: Used in C++ for input-output operations, but not related to defining NULL.
  • string.h: Used for string manipulation functions, does not define NULL.
  • Pre-processor: Though macros are handled by the pre-processor, NULL is defined in header files, not directly by the pre-processor.

Hence, the correct answer is: option 1: stdio.h and stddef.h

Latest NIELIT Scientific Assistant Updates

Last updated on Jul 3, 2025

-> NIELIT Scientific Assistant answer key 2025 has been released at the official website. 

-> NIELIT Scientific Assistant admit card 2025 has been released. 

-> NIELIT Scientific Assistant city intimation slip 2025 has been released at the official website.

-> NIELIT Scientific Assistant exam 2025 is scheduled to be conducted on June 28. 

-> A total number of 113 revised vacancies have been announced for the post of Scientific Assistant in Computer Science (CS), Information Technology (IT), and Electronics & Communication (EC) streams.

-> Online application form, last date has been extended up to from 17th April 2025.

->The NIELT has revised the Essential Qualifications for the post of Scientific Assistant. Candidates must possess (M.Sc.)/ (MS)/ (MCA) / (B.E.)/ (B.Tech) in relevant disciplines.

 

-> The NIELIT Scientific Assistant 2025 Notification has been released by the National Institute of Electronics and Information Technology (NIELIT).

Get Free Access Now
Hot Links: teen patti joy 51 bonus lucky teen patti teen patti master app teen patti master 2025