You are on page 1of 1

C Basic Exam

1 Design and code a function in C that receives as parameter the address of the
first element of an array and returns the greatest number found.

1 Given this structure


struct MyStruct
{
char a
int b
char c : 2
}
a What is the size of this structure in bits?

1 What is an union and how it can be used in C language?

1 Write a program that prompts the user for a string, and prints its reverse.

1 Write a program that swaps two nibbles in a byte.

1 Write a program that can be able to identify if a number is even or odd by


using bit-wise operations.

1 What is the difference between interrupts and exceptions.

1 What is a stack overflow and why it happens? Is there a way to prevent it?

1 How is the building process to compile a source code in C language?

1 What is the result of this operation:


a f = 7/9*11

You might also like