aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C Programming - 2
  • Directions: Answer the following question based on the fo...
Multiple choice

Directions: Answer the following question based on the following declaration. struct { char city[10]; char street[20]; int pincode; } addr; struct { char name[20]; int sex ; addr locate; } criminal,*kd = &criminal;

*(kd ->name + 2) can be used instead of

  1. *( criminal.name + 2)

  2. kd -> (name + 2)

  3. *((*kd).name + 2)

  4. either (2) or (3), but not by (1)

Reveal answer Fill a bubble to check yourself
A Correct answer

Keep practicing — related questions

  • Directions: Answer the following question based on the following declaration. struct { char city[10]; char ...
  • Directions: Answer the following question, based on the following declaration struct { char city[10]; char ...
  • Directions: Answer the following question, based on the following declaration. struct { char city[10]; char...
  • Which of the following structure declarations and structure variable's syntax is correct?
  • Determine Output : struct node { int a; int b; int c; }; int main() { struct node s= { 3, 5,6 }; struct nod...
  • void main() { struct { int EmpNo; } var; var.EmpNo=193149; printf("EmpNo: %d",var.EmpNo); }
  • void main() { struct { int EmpNo; } var; var.EmpNo=193149; printf("EmpNo: %d",var.EmpNo); }
  • Given an structure declaration Struct student { char first_name[10]; char mid_initital; char last_name[10];...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy