main()
{
printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3));
}
wat is the o/p and how?
Answer Posted / k.thanigaivel
This output is
4 2 4
Explanation:
sizeof('1 or 2 or 3,......or n')=4
sizeof("0")=2
sizeof("10")=3
sizeof("100")=4
sizeof("1000")=5
sizeof("10000")=6
.
.
.
.
.
sizeof("n")=n
sizeof(1 or 2 or 3......or n)=4
| Is This Answer Correct ? | 27 Yes | 25 No |
Post New Answer View All Answers
Describe dynamic data structure in c programming language?
Can two or more operators such as and be combined in a single line of program code?
Which node is more powerful and can handle local information processing or graphics processing?
What do you mean by a local block?
What is selection sort in c?
What is the difference between printf and scanf in c?
What is NULL pointer?
What is the general form of #line preprocessor?
what is the role you expect in software industry?
Differentiate between a structure and a union.
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
What is extern c used for?
What is difference between scanf and gets?
What is signed and unsigned?
Explain how can I manipulate strings of multibyte characters?