Answer Posted / j j ramesh
there is no foreigh key in c
| Is This Answer Correct ? | 14 Yes | 1 No |
Post New Answer View All Answers
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
What is the difference between struct and typedef struct in c?
What is the use of extern in c?
Why can’t we compare structures?
What are inbuilt functions in c?
Explain what are run-time errors?
What is the difference between malloc calloc and realloc in c?
Is file a keyword in c?
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
Is anything faster than c?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
What do you mean by a sequential access file?
What are two dimensional arrays alternatively called as?
Explain 'bit masking'?