How can you quickly find the number of elements stored in a
a) static array b) dynamic array ?

Answer Posted / guest

static array

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are proxy objects in c++?

651


which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?

728


What is difference between malloc()/free() and new/delete?

654


What are the extraction and insertion operators in c++?

572


What are the steps in the development cycle?

623






Which function should be used to free the memory allocated by calloc()?

598


Difference between pass by value and pass by reference?

615


What do you mean by volatile and mutable keywords used in c++?

591


Difference between class and structure.

721


How are Structure passing and returning implemented by the compiler?

606


Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?

1591


What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero

645


Is c++ a software?

734


What do manipulators do?

582


If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?

600