+ 3

C program to print line number of main()

I need a C program to print the line number in which the main() function is written

21st Jan 2018, 8:44 PM
Basu
Basu - avatar
4 odpowiedzi
+ 3
@martin, thank you for your response. But __LINE__ displays the line number of this macro itself.
22nd Jan 2018, 6:55 AM
Basu
Basu - avatar
0
I got it. thanks a ton dear. God bless you.
22nd Jan 2018, 9:06 AM
Basu
Basu - avatar