What will be output if you will execute following c code?
#include<stdio.h>
#include<math.h>
typedef struct{
char *name;
double salary;
}job;
void main(){
static job a={"TCS",15000.0};
static job b={"IBM",25000.0};
static job c={"Google",35000.0};
int x=5;
job * arr[3]={&a,&b,&c};
printf("%s %ft",(3,x>>5-4)[*arr]);
}
double myfun(double d){
d-=1;
return d;
Submitted by: MuhammadGoogle 35000.000000
Submitted by: Muhammad
Submitted by: Muhammad
Read Online Data Structure Arrays Job Interview Questions And Answers
Top Data Structure Arrays Questions
☺ | What will be output if you will execute following c code? |
☺ | What is Array? |
☺ | What is two-dimensional array? |
☺ | Explain Array of pointers? |
☺ | Tell me why can\'t constant values be used to define an array\'s initial size |
Top Data Structure Categories
☺ | Data Center Manager Interview Questions. |
☺ | Creative UI/UX Designers Interview Questions. |
☺ | Sort And Searching Interview Questions. |
☺ | Data Structure Linked list Interview Questions. |
☺ | Data Structure Arrays Interview Questions. |