wats the diference btwen constant pointer and pointer to a
constant.pls give examples.
Answer Posted / satish
char * const p; ->it is const pointer to char
const char * p; ->it is pointer to const char
| Is This Answer Correct ? | 29 Yes | 3 No |
Post New Answer View All Answers
How do you generate random numbers in C?
What is volatile, register definition in C
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
How can I find out the size of a file, prior to reading it in?
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 can I find the modification date and time of a file?
What does node * mean?
What is the difference between a string and an array?
What is the value of h?
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
How do you define a string?
What are the two types of functions in c?
Do array subscripts always start with zero?
What is the correct code to have following output in c using nested for loop?
Explain about the constants which help in debugging?