how to find the size of the data type like int,float
without using the sizeof operator?

Answer Posted / amit ranjan

int main()
{
int a[2];
int one = a;
int two = a+1;
int test = two-one;
printf("%d\n", test);
return 0;
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does c mean?

760


Calculate 1*2*3*____*n using recursive function??

1735


What is infinite loop?

827


What is advantage of pointer in c?

892


Write a program to check armstrong number in c?

848


Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent

1621


The file stdio.h, what does it contain?

861


How does sizeof know array size?

827


What is meant by realloc()?

881


Hi can anyone tell what is a start up code?

1823


What is the purpose of macro in C language?

848


What is volatile c?

758


What is spark map function?

784


What are the advantages of Macro over function?

1590


struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer

979