What is typedef struct in c?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

c program to add and delete an element from circular queue using array

3 Answers  


write a program for 7*8 = 56 ? without using * multiply operator ? output = 56

6 Answers   Xavient,


To find whether a number is even or odd without using any conditional operator??

12 Answers   College School Exams Tests, IBM,


Which of these functions is safer to use : fgets(), gets()? Why?

0 Answers  


In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]

0 Answers   Infosys,






You have an int array with n elements and a structure with three int members. ie struct No { unsigned int no1; unsigned int no2; unsigned int no3; }; Point1.Lets say 1 byte in the array element is represented like this - 1st 3 bits from LSB is one number, next 2 bits are 2nd no and last 3 bits are 3rd no. Now write a function, struct No* ExtractNos(unsigned int *, int count) which extracts each byte from array and converts LSByte in the order mentioned in point1.and save it the structure no1, no2, no3. in the function struct No* ExtractNos(unsigned int *, int count), first parameter points to the base address of array and second parameter says the no of elements in the array. For example: if your array LSB is Hex F7 then result no1 = 7, no2 = 2, no3 = 7. In the same way convert all the elements from the array and save the result in array of structure.

2 Answers   Qualcomm,


What is the process to generate random numbers in c programming language?

0 Answers  


What are pointers? Why are they used?

0 Answers  


Write a C program to convert an integer into a binary string?

1 Answers  


What is a stream in c programming?

0 Answers  


What will be the output of x++ + ++x?

20 Answers   MBT, Religare,


In which layer of the network datastructure format change is done

0 Answers   Honeywell,


Categories