IS STRUCTURES CAN BE USED WITHIN AN ARRAY?
Answers were Sorted based on User's Feedback
Answer / venugopal
YES ,THEY CAN BE,BECAUSE ARRAY CAN HOLD SIMILAR DATA
TYPED ONES,WE ARE USING ONLY STRUCTURE VARIABLES
THEMSELVES.IT WILL BE POSSIBLE.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / e-mail
yes. structures can be used within an array. variables are
declared in an arrays in structures.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / biranchi parida
generally in turbo c++ 3.0 to above version it can't
possible but possible if we declared float linking point
declaration
in such way globally after header file
float a,*b;
b=&a;
after this declaration structure can take array
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / swamy s t
No. Because arrays are homogeneous datatype and
structures are heterogeneous datatype. So we cann't
| Is This Answer Correct ? | 0 Yes | 1 No |
Result of the following program is main() { int i=0; for(i=0;i<20;i++) { switch(i) case 0:i+=5; case 1:i+=2; case 5:i+=5; default i+=4; break;} printf("%d,",i); } } a)0,5,9,13,17 b)5,9,13,17 c)12,17,22 d)16,21 e)syntax error
why the execution starts from main function
Write a program in C for showing working of different logical operator in C. Your program should guide users with proper message/menu on the console.
#include<stdio.h> void main() { int a=5,b=6,c; int x=(a<b)+7; int y=(x==7)*9; int z=(c=x+y)*2; printf("%h %h %h",x,y,z); } What is the output? Explain it.
difference between loading and linking
What is malloc and calloc?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
whenever a question is posted in a particular category in allinterview.com, Is there any facility to receive an indication mail. For eg: I need to receive an indication email, whenever a question is posted under the category “C Langauage”.
What is array of structure in c?
in linking some of os executables are linking name some of them
There is a number and when the last digit is moved to its first position the resultant number will be 50% higher than the original number.Find the number?
Is there any restriction in how many arguments printf or scanf function can take? in which file in my c++ compiler i can see the code for implementation of these two functions??