ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
What is the memory allocated by the following definition ?
  int (*x)[10];
 Question Submitted By :: Rajesh
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the memory allocated by the following definition ? int (*x)[10];
Answer
# 1
20 bytes
 
Is This Answer Correct ?    0 Yes 4 No
Chris_sreekanth
[Sankalp]
 
  Re: What is the memory allocated by the following definition ? int (*x)[10];
Answer
# 2
no memory is allocated at the time of pointer declaration
 
Is This Answer Correct ?    1 Yes 2 No
Subbu
 
 
 
  Re: What is the memory allocated by the following definition ? int (*x)[10];
Answer
# 3
It will occupy 2 bytes of memory(In 16-bit system). 
Explanation: int (*x)[10] means pointer to an array of 10 
integers , not an array of 10 nos. of integer pointers. So 
any pointer can take two bytes of memory.
 
Is This Answer Correct ?    9 Yes 0 No
Niraj Singh
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
we have to use realloc only after malloc or calloc ? or we can use initially with out depending on whether we are using malloc or calloc in our program ?  1
pgm to find middle element of linklist(in efficent manner) Huawei2
what is a c-language.what is do. HCL3
how to make c program without a libary? e.g.#include<stdio.h> libary is not in c progaram.  1
To find whether a number is even or odd without using any conditional operator?? IBM4
#include<stdio.h> main() { char *p1; char *p2; p1=(char *) malloc(25); p2=(char *) malloc(25); strcpy(p1,"Ramco"); strcpy(p2,"Systems"); strcat(p1,p2); printf("%s",p1); } Tell me the output? Ramco5
what is the function of void main()?  6
i want explaination about the program and its stack reprasetaion fibbo(int n) { if(n==1 or n==0) return n; else return fibbo(n-1)+fibbo(n-2); } main() { fibbo(6); }  2
1.write a program to merge the arrays 2.write efficient code for extracting unique elements from a sorted list of array? Qualcomm2
#define min((a),(b)) ((a)<(b))?(a):(b) main() { int i=0,a[20],*ptr; ptr=a; while(min(ptr++,&a[9])<&a[8]) i=i+1; printf("i=%d\n",i);}  3
WHAT IS MAXIMUM SIZE OF AN ARRAY IN C LANGUAGE? IBM5
hat is a pointer? Assurgent3
without using arithmatic operator convert an intger variable x into x+1  1
what does data structure mean?  7
What is the output of following program ? int main() { int x = 5; printf("%d %d %d\n", x, x << 2, x >> 2); } Qualcomm3
is compiler do read the data line by line or not. ?? LG-Soft3
what is the difference between #include<stdio.h> and #include "stdio.h" ?  2
Read N characters in to an array . Use functions to do all problems and pass the address of array to function. 1. Print only the alphabets . If in upper case print in lower case vice versa.  1
write a C program to print the program itself ?! TCS11
code for copying two strings with out strcpy() function.  5
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com