#include<stdio.h>
void main()
{
int a [5];
for (i=0; i<=4; i++)
printf(“%d” ,a[i]);
}
Answer Posted / neelima
it gives a garbage values
Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
What is the 'named constructor idiom'?
What is wrong in this statement?
What is structure padding and packing in c?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
What are valid signatures for the Main function?
How do you redirect a standard stream?
Do variables need to be initialized?
How many levels deep can include files be nested?
What are the restrictions of a modulus operator?
What does the c preprocessor do?
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.
What is adt in c programming?
how to construct a simulator keeping the logical boolean gates in c
What does c value mean?
Explain the difference between #include "..." And #include <...> In c?