Explain what are the __date__ and __time__ preprocessor commands?



Explain what are the __date__ and __time__ preprocessor commands?..

Answer / Reetu Kumari

__date__ is a preprocessor command that returns the date (in format yyyy-mm-dd) when the source file is compiled, while __time__ returns the current time (in format HHMMSS). These commands are often used for generating timestamps within a program.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

write a recursive program in'c'to find whether a given five digit number is a palindrome or not

2 Answers  


write a c/c++ program that takes a 5 digit number and calculates 2 power that number and prints it?

4 Answers  


What is an auto keyword in c?

1 Answers  


Convert a distance from miles to kilometers .there are 5280 feets per mile,12 inches per foot .2.54 centimeters per inch and 100000centimeters per kilometer

0 Answers   TCS,


What does the c preprocessor do?

1 Answers  


Why is conio.h not required when we save a file as .c and use clrscr() or getch() ?

2 Answers  


which will be first in c compiling ,linking or compiling ,debugging.

3 Answers   Sonata,


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1 Answers  


Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff

1 Answers  


What is a structure member in c?

1 Answers  


what is the output of the following program? #include<stdio.h> void main() { int x=4,y=3,z; z=x-- -y; printf("\n%d %d %d",x,y,z); }

14 Answers  


Is there anything like an ifdef for typedefs?

1 Answers  


Categories