+ 1

Starting point of c code execution

I belive that main function is start point of the C program. I got a problem statement that first line in C code is printf statement inside main function. This statement is just for logging purpose that welcome to code. Now this statement itself is not getting executed. What could be the reason ? I am not able to understand whether it is possible also or not. If yes, what could be the problem?

29th Jul 2021, 2:51 PM
Ketan Lalcheta
Ketan Lalcheta - avatar
5 Antworten
+ 1
assuming that you didn't remove comments from your code or it could be a SL bug unless you tested it on the local machine.
29th Jul 2021, 2:56 PM
Rellot's screwdriver
Rellot's screwdriver - avatar
+ 1
It is not something I am facing... This is question I was asked... so got curious whether it is still a case or not at all possible?
29th Jul 2021, 3:38 PM
Ketan Lalcheta
Ketan Lalcheta - avatar
+ 1
This was a interview question one of my friend was asked by recruitment panel. So I am not sure whether it actually happens or not.
30th Jul 2021, 6:29 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
+ 1
I might inquire how certain is it that the line is not getting executed? Or is it possible that standard output has been redirected so the expected text is not appearing on the console?
30th Jul 2021, 8:45 AM
Brian
Brian - avatar