#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 / janava
In this it generate an error because declaration the array
as char but read the variable as integer.
| Is This Answer Correct ? | 7 Yes | 6 No |
Post New Answer View All Answers
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
Difference between strcpy() and memcpy() function?
What are the ways to a null pointer can use in c programming language?
What does nil mean in c?
What is the right type to use for boolean values in c? Is there a standard type?
FILE PROGRAMMING
How important is structure in life?
What are the various types of control structures in programming?
What are pointers in C? Give an example where to illustrate their significance.
What is the concatenation operator?
write a program to print largest number of each row of a 2D array
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
What is calloc() function?
Explain how do you generate random numbers in c?
How can I determine whether a machines byte order is big-endian or little-endian?