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
Write a simple code fragment that will check if a number is positive or negative.
Explain high-order bytes.
What is the difference between test design and test case design?
Is there any possibility to create customized header file with c programming language?
Is c still used?
Differentiate between a structure and a union.
Why enum is used in c?
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]
What are header files? What are their uses?
What is pivot in c?
How does selection sort work in c?
Is a house a mass structure?
Give differences between - new and malloc() , delete and free() ?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
What is enumerated data type in c?