Which of the following is the correct syntax to get the application startup path in C#?A) Application.StartPathB) Application.GetStartPath()C) Application.StartupPathD) Application.Path
C) Application.StartupPath
The correct syntax to get the application startup path in C# is Application.StartupPath. This property returns a string containing the full path to the directory that contains the executable file for the current application.
string path = AppDomain.CurrentDomain.BaseDirectory;