#include<std.h>
int main()
{
char *str[]={"Frogs","Do","Not","Die","They","Croak!"};
printf("%d %d\n",sizeof(str),strlen(str));
...return 0;
}
what will the output of the above program?
Answer Posted / s.ramakrishna
thw output becomes 6 6
why because the character pointer stores their values and
that will be printed
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
How do you list a file’s date and time?
Describe wild pointers in c?
What is sorting in c plus plus?
What is the use of bit field?
What are the key features in c programming language?
What does volatile do?
List out few of the applications that make use of Multilinked Structures?
What is table lookup in c?
If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..
How do you convert strings to numbers in C?
Write a progarm to find the length of string using switch case?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
what is the format specifier for printing a pointer value?
Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer
What is the significance of an algorithm to C programming?