void main()
{
int a=1;
while(a++<=1)
while(a++<=2);
}
Answers were Sorted based on User's Feedback
Answer / sabir
this program execute at one both while are working becouse
a++ increase value after while statement that by both are
execute at once
| Is This Answer Correct ? | 13 Yes | 1 No |
Answer / madhavi
1<=1, a=2 (true)(first while)
2<=2,a=3 (true)(second while)
3<=3,a=4 (false)(second while)
4<=1,a=5 (false)(first while)
the loops are in nesting ,the second while is the loop body
of the first while loop
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / venkatapradeep774
ans:5...i need an explaination for this tat how it will be 5.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / dheerendra
it gives error,
because any loop can't be terminated by ';'
| Is This Answer Correct ? | 0 Yes | 3 No |
How can you avoid including a header more than once?
Explain the use of #pragma exit?
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 difference between declaring a variable and defining a variable?
#include<stdio.h> int main() { int i=0,j=1,k=2,m,n=0; m=i++&&j++&&k++||n++; printf("%d,%d,%d,%d,%d",i,j,k,m,n); }
12 Answers Capital IQ, Sasken,
What compilation do?
7 Answers Geometric Software, Infosys,
write a program structure to find average of given number
what is the difference between normal variables and pointer variables..............
15 Answers HP, Infosys, Satyam, Vivekanand Education Society,
int arr[] = {1,2,3,4} int *ptr=arr; *(arr+3) = *++ptr + *ptr++; Final contents of arr[]
State two uses of pointers in C?
What is the equivalent code of the following statement in WHILE LOOP format?
What are local static variables?