How can I automatically locate a programs configuration files in the same directory as the executable?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

Where define directive used?

0 Answers  


Explain can static variables be declared in a header file?

0 Answers  


Just came across this question, felt worth sharing, so here it is I want you to make a C/C++ program that for any positive integer n will print all the positive integers from 1 up to it and then back again! Let's say n=5 I want the program to print: 1 2 3 4 5 4 3 2 1. Too easy you say? Okay then... You can ONLY USE: 1 for loop 1 printf/cout statement 2 integers( i and n) and as many operations you want. NO if statements, NO ternary operators, NO tables, NO pointers, NO functions!

1 Answers  


what is a non volatile key word in c language?

1 Answers  


1)what is the error in the following stmt where str is a char array and the stmt is supposed to traverse through the whole character string str? for(i=0;str[i];i++) a)There is no error. b)There shud be no ; after the stmt. c)The cond shud be str[i]!='\0' d)The cond shud be str[i]!=NULL e)i shud be initialized to 1

4 Answers  


How do I access command-line arguments?

2 Answers   Bosch, Wipro,


What is the difference between scanf and fscanf?

0 Answers  


What does c mean in standard form?

0 Answers  


what is c?

13 Answers   Tech Mahindra,


What is the difference between abs() and fabs() functions?

0 Answers  


What are volatile variables in c?

0 Answers  


Can we replace the struct function in tree syntax with a union?

0 Answers   Huawei,


Categories