difference between function & structure

Answer Posted / lakkup

structure:it holds dissimiliar datatypes when compared to
array.

function:it is used when an operation has to be done by
skipping some of the stepsi.e., function call

Is This Answer Correct ?    12 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are formal parameters?

652


What are the disadvantages of c language?

614


Explain argument and its types.

598


An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above

645


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

651






How do I determine whether a character is numeric, alphabetic, and so on?

620


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.

2702


Which header file is used for clrscr?

574


What is the difference between the expression “++a” and “a++”?

648


What is data structure in c language?

599


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

1672


What should malloc() do?

639


Write a program to print fibonacci series without using recursion?

600


How a string is stored in c?

584


Explain the use of 'auto' keyword in c programming?

679