Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

C Interview Questions
Questions Answers Views Company eMail

To what value are pointers initialized? 1) NULL 2) Newly allocated memory 3) No action is taken by the compiler to initialize pointers.

Aricent,

4 9781

Which of the following sorts is quickest when sorting the following set: 1 2 3 5 4 1) Quick Sort 2) Bubble Sort 3) Merge Sort

7 16664

Which of the following data structures is on average the fastest for retrieving data: 1) Binary Tree 2) Hash Table 3) Stack

3 13708

Evaluate the following: int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; } for fn(7); 1) 10 2) 11 3) 1

6 20322

What character terminates all strings composed of character arrays? 1) 0 2) . 3) END

3 8019

True or false: If you continuously increment a variable, it will become negative? 1) True 2) False 3) It depends on the variable type

7 16411

Which of the following is not a valid declaration for main ()? 1) int main() 2) int main(int argc, char *argv[]) 3) They both work

2 13068

Which is not valid in C? 1) class aClass{public:int x;} 2) /* A comment */ 3) char x=12;

7 11130

void swap(int a,int b) { a=a+b; b=a-b; a=a-b; } in this code always gives the same result for all case

Accenture, TCS,

9 18826

if a five digit number is input through the keyboard, write a program to calculate the sum of its digits. (hint:-use the modulus operator.'%')

23 80713

in iso what are the common technological language?

2116

Write a program or provide a pseudo code to flip the 2nd bit of the 32 bit number ! (Phone Screen)

NetApp, PTU, Wipro,

1 6944

what is the diff b/w static and non static variables in C. Give some examples plz.

Wipro,

3 14281

Add 2 64 bit numbers on a 32 bit machine

EMC, Hyderabad Central University, NetApp,

3 17571

Write a program to accept a character & display its corrosponding ASCII value & vice versa?

9 38210


Post New C Questions

Un-Answered Questions { C }

What are terms in math?

1050


Why do we use header files in c?

1077


What is identifiers in c with examples?

1182


What is #ifdef ? What is its application?

1112


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

3544


For what purpose null pointer used?

1079


What is the stack in c?

1154


How can a process change an environment variable in its caller?

1190


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

1727


How are structure passing and returning implemented?

1040


How are variables declared in c?

1103


How do you use a 'Local Block'?

1173


At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with these names could be kept in that shelf as in this example: bottom of shelf ---> [AAAJKRDFDEWAAYFYYKK]-----Top of shelf. All these packets are to be loaded on cars. The cars are lined in order, so that the packet could be loaded on them. The cars are also named [A, B, C, D, E,………….]. Each Car will load the packet with the same alphabet. So, for example, car ‘A’ will load all the packets with name ‘A’. Each particular car will come at the loading point only once. The cars will come at the loading point in alphabetical order. So, car ‘B’ will come and take all the packets with name ‘B’ from the shelf, then car ‘C’ will come. No matter how deep in the shelf any packet ‘B’ is, all of the ‘B’ packets will be displaced before the ‘C’ car arrives. For that purpose, some additional shelves are provided. The packets which are after the packet B, are kept in those shelves. Any one of these shelves contains only packets, having the same name. For example, if any particular shelf is used and if a packet with name X is in it, then only the packets having names X will be kept in it. That shelf will look like [XXXXXXX]. If any shelf is used once, then it could be used again only if it is vacant. Packets from the initial shelf could be unloaded from top only. Write a program that finds the minimum total number of shelves, including the initial one required for this loading process.

2188


What is include directive in c?

1158


Why c is called a middle level language?

1112