write a program for size of a data type without using
sizeof() operator?
Answer Posted / mazhar shaikh
datatype a,*p,*q;
p=&a;
q=p+1;
cout<<abs(int(p)-int(q))<<endl;
| Is This Answer Correct ? | 5 Yes | 7 No |
Post New Answer View All Answers
What is the argument of a function in c?
Can you tell me how to check whether a linked list is circular?
What is linear search?
Explain can you assign a different address to an array tag?
string reverse using recursion
How can this be legal c?
How do you initialize pointer variables?
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
What is nested structure?
Are there namespaces in c?
hi any body pls give me company name interview conduct "c" language only
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
What does the message "automatic aggregate intialization is an ansi feature" mean?
What are directives in c?
Describe the steps to insert data into a singly linked list.