What is the memory allocated by the following definition ?
int (*x)[10];
Answer Posted / kracekumar
integer occupies 4 bytes in *nix os and 2 byte in DOS/Windows ,so the right answer is sizeof(int)*10.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What library is sizeof in c?
What is a stream in c programming?
Why header file is used in c?
What is the scope of static variable in c?
What are the 4 data types?
why wipro wase
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
What is NULL pointer?
How can you call a function, given its name as a string?
Are comments included during the compilation stage and placed in the EXE file as well?
Explain the use of keyword 'register' with respect to variables.
What is the full form of getch?
I came across some code that puts a (void) cast before each call to printf. Why?
In c programming language, how many parameters can be passed to a function ?
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]