#include<stdio.h>

main()

{

struct xx

{

int x=3;

char name[]="hello";

};

struct xx *s;

printf("%d",s->x);

printf("%s",s->name);

}

Answer Posted / susie

Answer :

Compiler Error

Explanation:

You should not initialize variables in declaration

Is This Answer Correct ?    10 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you relate the function with the structure? Explain with an appropriate example.

3136


What is full form of PEPSI

2134


write a simple calculator c program to perform addition, subtraction, mul and div.

3394


write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30

2449


Write a program to model an exploding firecracker in the xy plane using a particle system

3883


How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?

2261


Develop a routine to reflect an object about an arbitrarily selected plane

3284


Design an implement of the inputs functions for event mode

3179


What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?

4065


Cluster head selection in Wireless Sensor Network using C programming language.

3396


why nlogn is the lower limit of any sort algorithm?

2554


could you please send the program code for multiplying sparse matrix in c????

3293


What is data _null_? ,Explain with code when u need to use it in data step programming ?

3025


How to palindrom string in c language?

9844


Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??

2145