What is Generic pointer? What is the purpose of Generic
pointer? Where it is used?
Answer Posted / kiran kumar yakkala
generic pointer- generally "void" used for generic
no specification of data type
if u dont know the data type specification at the time
of any funciton or datatype declaration, generally go for
generaic(void) .
but it needs a "type conversion" for further usage
mind that "void" pointer never be incremented or
decremented, after type conversion only u should go for
that.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is calloc malloc realloc in c?
When should I declare a function?
What is difference between %d and %i in c?
How can I find out how much free space is available on disk?
What are the header files used in c language?
What will be the outcome of the following conditional statement if the value of variable s is 10?
What are the key features in c programming language?
Describe dynamic data structure in c programming language?
What is a macro?
How can you increase the size of a dynamically allocated array?
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
What is structure packing in c?
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.
Why do we use & in c?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.