Purchase Solution

C-Code Compilation

Not what you're looking for?

Ask Custom Question

Do you think that the following C code will compile? Why or why not? What will be printed by it?

char c;
c = '1';
switch (c)
{
case 1 : printf("It is 1n");
break;
case 2 : printf("It is 2n");
break;
case 49: printf("It is 49n");
}

Purchase this Solution

Solution Summary

Do you think that the following C code will compile?

Solution Preview

Yes, the code will compile (assuming that this piece of code is written in main() function) as there are no ...

Purchase this Solution


Free BrainMass Quizzes
Javscript Basics

Quiz on basics of javascript programming language.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Basic Networking Questions

This quiz consists of some basic networking questions.