main()
{
printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3));
}
wat is the o/p and how?

Answer Posted / niru

2 2 2
it returns the size of the int.
if the compiler is 32bit, size of the int=4
o/p: 4 4 4

Is This Answer Correct ?    3 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a simple code fragment that will check if a number is positive or negative.

717


Explain high-order bytes.

683


What is the difference between test design and test case design?

1582


Is there any possibility to create customized header file with c programming language?

634


Is c still used?

614






Differentiate between a structure and a union.

773


Why enum is used in c?

538


In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]

1967


What are header files? What are their uses?

648


What is pivot in c?

572


How does selection sort work in c?

635


Is a house a mass structure?

650


Give differences between - new and malloc() , delete and free() ?

618


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

588


What is enumerated data type in c?

637