#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


Please Help Members By Posting Answers For Below Questions

What is the 'named constructor idiom'?

637


What is wrong in this statement?

602


What is structure padding and packing in c?

616


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

584


What are valid signatures for the Main function?

700






How do you redirect a standard stream?

620


Do variables need to be initialized?

617


How many levels deep can include files be nested?

647


What are the restrictions of a modulus operator?

631


What does the c preprocessor do?

617


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.

2704


What is adt in c programming?

608


how to construct a simulator keeping the logical boolean gates in c

1723


What does c value mean?

623


Explain the difference between #include "..." And #include <...> In c?

626