How can I automatically locate a programs configuration files in the same directory as the executable?
Where define directive used?
Explain can static variables be declared in a header file?
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!
what is a non volatile key word in c language?
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
How do I access command-line arguments?
What is the difference between scanf and fscanf?
What does c mean in standard form?
what is c?
What is the difference between abs() and fabs() functions?
What are volatile variables in c?
Can we replace the struct function in tree syntax with a union?