what is the difference between structure and union?
Answer Posted / sevak.yatrik777
While structure enables us treat a number of different
variables stored at different in memory , a union enables us
to treat the same space in memory as a number of different
variables. That is a Union offers a way for a section of
memory to be treated as a variable of one type on one
occasion and as a different variable of a different type on
another occasion.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is table lookup in c?
How will you write a code for accessing the length of an array without assigning it to another variable?
Tell me about low level programming languages.
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
How can you tell whether a program was compiled using c versus c++?
How can I run c program?
Why we not create function inside function.
Which type of language is c?
What are the disadvantages of external storage class?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
How do I swap bytes?
What is hashing in c language?
what is bit rate & baud rate? plz give wave forms
What is realloc in c?