Answer Posted / vignesh1988i
1) loop is a special provisions made in various programming languages in which we travel through till a certain condition is reached ....
2) whenever we have to print certain number of values repeatedly or constantly we can go for looping structures...
3) whenever a certain same operations has to be performed for different values consecutively we go for looping.....
thank u
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
What is the advantage of using #define to declare a constant?
Why do we write return 0 in c?
How does normalization of huge pointer works?
What is the -> in c?
What is the c value paradox and how is it explained?
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include
What is a ternary operator in c?
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers
Why do we use header files in c?
how to capitalise first letter of each word in a given string?
What is the size of structure pointer in c?
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values. The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.
How pointer is different from array?