Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  If p is pointer to an integer and tis a point... Start Learning for Free
If p is pointer to an integer and t is a pointer to a character then size of (p) will be
  • a)
    Same as that of size of (t)
  • b)
    Greater than that of size of (t)
  • c)
    Less than that of size of (t)
  • d)
    None of the above
Correct answer is option 'A'. Can you explain this answer?
Verified Answer
If p is pointer to an integer and tis a pointer to a character then si...
Pointer to an integer and pointer to a character are equivalent when the context of size of operator is used.
View all questions of this test
Most Upvoted Answer
If p is pointer to an integer and tis a pointer to a character then si...
Explanation:

In C, the size of a pointer is dependent on the underlying system architecture. On most modern systems, a pointer occupies 4 bytes or 8 bytes (32-bit or 64-bit architecture respectively). However, the size of the data type being pointed to by the pointer is independent of the pointer itself.

Size of p:
Since p is a pointer to an integer, the size of p will be the same as the size of any other pointer on the system (4 bytes or 8 bytes).

Size of t:
Since t is a pointer to a character, the size of t will also be the same as the size of any other pointer on the system (4 bytes or 8 bytes).

Comparison:
Therefore, the size of p and t is the same, regardless of the type of data they are pointing to. The size of the data type itself (integer or character) is not relevant when determining the size of a pointer.

Conclusion:
Hence, the size of (p) is the same as the size of (t), making option A the correct answer.
Explore Courses for Computer Science Engineering (CSE) exam

Similar Computer Science Engineering (CSE) Doubts

Question Description
If p is pointer to an integer and tis a pointer to a character then size of (p) will bea)Same as that of size of (t)b)Greater than that of size of (t)c)Less than that of size of (t)d)None of the aboveCorrect answer is option 'A'. Can you explain this answer? for Computer Science Engineering (CSE) 2025 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about If p is pointer to an integer and tis a pointer to a character then size of (p) will bea)Same as that of size of (t)b)Greater than that of size of (t)c)Less than that of size of (t)d)None of the aboveCorrect answer is option 'A'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2025 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for If p is pointer to an integer and tis a pointer to a character then size of (p) will bea)Same as that of size of (t)b)Greater than that of size of (t)c)Less than that of size of (t)d)None of the aboveCorrect answer is option 'A'. Can you explain this answer?.
Solutions for If p is pointer to an integer and tis a pointer to a character then size of (p) will bea)Same as that of size of (t)b)Greater than that of size of (t)c)Less than that of size of (t)d)None of the aboveCorrect answer is option 'A'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of If p is pointer to an integer and tis a pointer to a character then size of (p) will bea)Same as that of size of (t)b)Greater than that of size of (t)c)Less than that of size of (t)d)None of the aboveCorrect answer is option 'A'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of If p is pointer to an integer and tis a pointer to a character then size of (p) will bea)Same as that of size of (t)b)Greater than that of size of (t)c)Less than that of size of (t)d)None of the aboveCorrect answer is option 'A'. Can you explain this answer?, a detailed solution for If p is pointer to an integer and tis a pointer to a character then size of (p) will bea)Same as that of size of (t)b)Greater than that of size of (t)c)Less than that of size of (t)d)None of the aboveCorrect answer is option 'A'. Can you explain this answer? has been provided alongside types of If p is pointer to an integer and tis a pointer to a character then size of (p) will bea)Same as that of size of (t)b)Greater than that of size of (t)c)Less than that of size of (t)d)None of the aboveCorrect answer is option 'A'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice If p is pointer to an integer and tis a pointer to a character then size of (p) will bea)Same as that of size of (t)b)Greater than that of size of (t)c)Less than that of size of (t)d)None of the aboveCorrect answer is option 'A'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam
Signup to solve all Doubts
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev