main()
{
struct student
{
char name[30];
struct date dob;
}stud;
struct date
{
int day,month,year;
};
scanf("%s%d%d%d", stud.rollno, &student.dob.day,
&student.dob.month, &student.dob.year);
}
Answer / susie
Answer :
Compiler Error: Undefined structure date
Explanation:
Inside the struct definition of ‘student’ the member of type
struct date is given. The compiler doesn’t have the
definition of date structure (forward reference is not
allowed in C in this case) so it issues an error.
Is This Answer Correct ? | 1 Yes | 0 No |
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
C statement to copy a string without using loop and library function..
programming in c lanugaue programm will errror error with two header file one as stdio.h and other one is conio.h
Which version do you prefer of the following two, 1) printf(“%s”,str); // or the more curt one 2) printf(str);
main() { unsigned int i=65000; while(i++!=0); printf("%d",i); }
how can u draw a rectangle in C
53 Answers Accenture, CO, Codeblocks, Cognizant, HCL, Oracle, Punjab National Bank, SAP Labs, TCS, University, Wipro,
What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql
Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines
func(a,b) int a,b; { return( a= (a==b) ); } main() { int process(),func(); printf("The value of process is %d !\n ",process(func,3,6)); } process(pf,val1,val2) int (*pf) (); int val1,val2; { return((*pf) (val1,val2)); }
How do you write a program which produces its own source code as its output?
main() { int i=5,j=10; i=i&=j&&10; printf("%d %d",i,j); }
main() { char *p; p="%d\n"; p++; p++; printf(p-2,300); }