The first declares an initialized and modifiable array; the second declares a pointer initialized to a not-necessarily- modifiable constant string.
What am I allowed to assume about the initial values of variables which are not explicitly initialized?
Structures in C can certainly contain pointers to themselves; the discussion and example in section 6.5 of K&R make this clear. Problems arise...
There are no special cases. Standard volatile provides no useful guarantees related to multi-threaded programming. Whether it's global or not,...
ANS:c 0.7f is float constant. Its binary value is written in 32 bit. 0.7 is double constant(default). Its binary value is written in 64 bit....
thanks. i got it.
mmondal71 u r correct but will u please clarify?
What will be output of following c program? void main() { clrscr(); asm{ mov ax,61; mov bx,10; add bx,ax; }...
why is that some codes that work fine with TC++ does NOT work well in DevC++ ?:confused:
i use dev c++ and TC++ for learning c++ some codes , when i want to run them , they just flush, doesnt show any output, a consol window...
void displayCards( const vector<SnackCart*>& carts ) { if( carts.empty() ) { std::cout << "Error: no cards added or loaded yet" <<...
I write a program to show numbers between 10 and 15 and a black window open, shows my number and then close very quikly. how can i stop it from...
A pure virtual function does not work at all - it is by definition defined as a a header only, with zero assigned to indicate this to the compiler...
Yes there is a Virtual Destructor. A destructor can be virtual as it is possible as at runtime depending on the type of object pointer is pointing...
What is the difference between an ARRAY and a LIST?
What is the difference between realloc() and free()? please give a detailed analysis.
If we will go the beyond array it will point next continuous memory address. Thus it will return a garbage value.
The answer is totally right but will u clarify the answer?
What will be the output if you will execute following c code? #include<stdio.h> int main(){ int xyz=1000; int *ptr=&xyz; printf("%d...
This will run : count_vowel(word) char word[50] { char ch; int v=0,i=0; while ((ch=word[i])!='\0') { switch(ch) { case 'a': case 'e': case 'i':...
Separate names with a comma.