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

What will be printed as the result of the operation below: #include<..> int x; int modifyvalue() { return(x+=10); } int changevalue(int x) { return(x+=1); } void main() { int x=10; x++; changevalue(x); x++; modifyvalue(); printf("First output:%d\n",x); x++; changevalue(x); printf("Second output:%d\n",x); modifyvalue(); printf("Third output:%d\n",x); }

2 10963

1)which of following operator can't be overloaded. a)== b)++ c)?! d)<=

CybOrg, Siemens,

16 40669

2)#include main() { printf("Hello World"); } the program prints Hello World without changing main() the o/p should be intialisation Hello World Desruct the changes should be a)iostream operator<<(iostream os, char*s) os<<'intialisation'<<(Hello World)<

Siemens,

4 14354

6)swap(int x,y) { int temp; temp=x; x=y; y=temp; } main() { int x=2;y=3; swap(x,y); } after calling swap ,what are yhe values x&y?

3 20236

18)struct base {int a,b; base(); int virtual function1(); } struct derv1:base{ int b,c,d; derv1() int virtual function1(); } struct derv2 : base {int a,e; } base::base() { a=2;b=3; } derv1::derv1(){ b=5; c=10;d=11;} base::function1() {return(100); } derv1::function1() { return(200); } main() base ba; derv1 d1,d2; printf("%d %d",d1.a,d1.b) o/p is a)a=2;b=3; b)a=3; b=2; c)a=5; b=10; d)none 19) for the above program answer the following q's main() base da; derv1 d1; derv2 d2; printf("%d %d %d",da.function1(),d1.function1(),d2.function1 ()); o/p is a)100,200,200; b)200,100,200; c)200,200,100; d)none 20)struct { int x; int y; }abc; you can not access x by the following 1)abc-->x; 2)abc[0]-->x; abc.x; (abc)-->x; a)1,2,3 b)2&3 c)1&2 d)1,3,4

1 10507

write a program to swap bits in a character and return the value prototype of function char fun (char a, charb flag c) where fun returns a char, char a is a the value char b is the bit to be changed and flag c is the bit value for eg: x=fun(45,7,0) since 45 is 0010 0101 and ow x should contain the value 65 (0110 0101)

Bosch, College School Exams Tests,

1 7252

How to add two numbers without using arithmetic operators?

College School Exams Tests, e track, Infosys, Pan Parag, Sapient, TCS,

18 43139

how we can make 3d venturing graphics on outer interface

Microsoft,

1 4751

what is the defrenece between structure and union

Aloha Technology,

5 9764

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

TATA, TCS,

3485

What is volatile

2 5519

how to find the size of the data type like int,float without using the sizeof operator?

13 24402

what is the use of a array in c

6 8243

How to avoid structure padding in C?

Tech Mahindra,

8 54757

Why does not use getgh(); and in c language.

Elofic,

3 9970


Post New C Questions

Un-Answered Questions { C }

What are the two forms of #include directive?

1115


write a c program to calculate sum of digits till it reduces to a single digit using recursion

3263


a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.

5024


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

1120


Which is better oop or procedural?

1005


Is it possible to have a function as a parameter in another function?

1049


Explain the difference between structs and unions in c?

974


how can I convert a string to a number?

1045


Why is c called a structured programming language?

1230


difference between object file and executable file

6658


the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

961


What is nested structure?

1012


What is a double c?

944


Can we change the value of constant variable in c?

1016


What is adt in c programming?

1122