Write a c program to print the sizes and ranges of different
data types in c?
Answer Posted / pavithra
x=sizeof(int);
range=pow(2,x);
| Is This Answer Correct ? | 24 Yes | 15 No |
Post New Answer View All Answers
What is keyword with example?
Can we declare function inside main?
What is the purpose of main( ) in c language?
Explain about C function prototype?
How can I write functions that take a variable number of arguments?
What does the characters “r” and “w” mean when writing programs that will make use of files?
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]
Write a program to swap two numbers without using a temporary variable?
What do you mean by scope of a variable in c?
Tell me when would you use a pointer to a function?
A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?
Do you know the use of fflush() function?
What are the advantages of using linked list for tree construction?
how to find anagram without using string functions using only loops in c programming
What is the difference between declaring a variable by constant keyword and #define ing that variable?