#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


Please Help Members By Posting Answers For Below Questions

What is New modifiers?

662


Do pointers store the address of value or the actual value of a variable?

603


The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none

759


Define Spanning-Tree Protocol (STP)

638


shorting algorithmS

1797






What is the difference between c &c++?

641


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1244


How do you view the path?

657


what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9

1426


find out largest elemant of diagonalmatrix

1643


Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)

805


What is the translation phases used in c language?

625


What is wrong with this declaration?

606


Write a function that will take in a phone number and output all possible alphabetical combinations

592


What are the advantages of using linked list for tree construction?

639