What is an example of structure?



What is an example of structure?..

Answer / Sanjay Kumar Gupta

An example of a structure in C might be: struct student {ntchar name[50];ntint age;ntfloat gpa;n}; This creates a student structure with three fields: name (an array of characters), age (an integer), and gpa (a floating-point number).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.

1 Answers  


Write a code to reverse string seperated by spaces i/p str=India is my country o/p str=aidnI si ym yrtnuoc After writing code, optimize the code

1 Answers  


Compare interpreters and compilers.

1 Answers  


write a function to find whether a string is palindrome or not and how many palindrome this string contain?

2 Answers   Aptech,


What is the difference between GETS();AND SCANF();

4 Answers   TCS,


What is the difference between test design and test case design?

1 Answers  


Determine if a number is a power of 2 at O(1).

2 Answers  


How do you generate random numbers in C?

1 Answers  


How is actual parameter different from the formal parameter?

1 Answers  


What are the benefits of organizational structure?

1 Answers  


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1 Answers  


what is the difference b/w compiler and debugger?

2 Answers   Assurgent,


Categories