What is the memory allocated by the following definition ?
int (*x)[10];

Answer Posted / kracekumar

integer occupies 4 bytes in *nix os and 2 byte in DOS/Windows ,so the right answer is sizeof(int)*10.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.

1389


What is the scope of static variables in c language?

734


Subtract Two Number Without Using Subtraction Operator

451


What is realloc in c?

693


What is file in c language?

677






A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

834


How to find a missed value, if you want to store 100 values in a 99 sized array?

932


What is the ANSI C Standard?

877


if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.

4652


Can you define which header file to include at compile time?

690


Explain Function Pointer?

784


What are header files? What are their uses?

735


What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

808


Are c and c++ the same?

707


What is the use of putchar function?

734