how to find the size of the data type like int,float
without using the sizeof operator?
Answer Posted / anil arya
#define SIZEOF(type) (int)&((int *)0)[1])
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is local and global variable in c?
Explain what is the advantage of a random access file?
Why do we use return in c?
What are the types of variables in c?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
Explain union. What are its advantages?
explain what is an endless loop?
Write a program to swap two numbers without using a temporary variable?
What is indirection in c?
In C language what is a 'dangling pointer'?
Why is c not oop?
How can I dynamically allocate arrays?
How will you find a duplicate number in a array without negating the nos ?
Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers
What is a const pointer in c?