what is the output of the following program?
#include<stdio.h>
void main()
{
float x=1.1;
while(x==1.1)
{
printf("\n%f",x);
x=x-0.1;
}
}
Answer Posted / gangadhar
first time loop will satisfy and second time loop will
not satisfy bcoz x become zero....
| Is This Answer Correct ? | 0 Yes | 17 No |
Post New Answer View All Answers
How can I trap or ignore keyboard interrupts like control-c?
Once I have used freopen, how can I get the original stdout (or stdin) back?
What is the difference between array and structure in c?
What is use of integral promotions in c?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
Explain what are the different data types in c?
What is the return type of sizeof?
difference between Low, Middle, High Level languages in c ?
What is function definition in c?
What is the explanation for the dangling pointer in c?
Explain the bubble sort algorithm.
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
How will you divide two numbers in a MACRO?
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 the use of pragma in embedded c?