In the following code segment what will be the result of the
function,
value of x , value of y
{
unsigned int x=-1;
int y;
y = ~0;
if(x == y)
printf("same");
else
printf("not same");
}
a) same, MAXINT, -1
b) not same, MAXINT, -MAXINT
c) same , MAXUNIT, -1
d) same, MAXUNIT, MAXUNIT
e) not same, MAXINT, MAXUNIT
Answer Posted / guest
Ans. A
| Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
Why doesnt that code work?
what are the different storage classes 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 is a union?
Why n++ execute faster than n+1 ?
State the difference between x3 and x[3].
In C programming, what command or code can be used to determine if a number of odd or even?
Can you define which header file to include at compile time?
What is the difference between scanf and fscanf?
What are disadvantages of C language.
Explain what are run-time errors?
What is the use of static variable in c?
Is there any data type in c with variable size?