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 |
void main() { while(1){ if(printf("%d",printf("%d"))) break; else continue; } }
String reverse with time complexity of n/2 with out using temporary variable.
main() { int i = 0xff ; printf("\n%d", i<<2); } a. 4 b. 512 c. 1020 d. 1024
int a=1; printf("%d %d %d",a++,a++,a); need o/p in 'c' and what explanation too
write the function. if all the character in string B appear in string A, return true, otherwise return false.
What is the main difference between STRUCTURE and UNION?
main() { int a=10,*j; void *k; j=k=&a; j++; k++; printf("\n %u %u ",j,k); }
main() { float i=1.5; switch(i) { case 1: printf("1"); case 2: printf("2"); default : printf("0"); } }
write a c program to Create employee record by taking details like name, employee id, address and phone number. While taking the phone number, take either landline or mobile number. Ensure that the phone numbers of the employee are unique. Also display all the details
1. const char *a; 2. char* const a; 3. char const *a; -Differentiate the above declarations.
main() { 41printf("%p",main); }8
main() { char *p = “ayqm”; char c; c = ++*p++; printf(“%c”,c); }