C Interview Questions
Questions Answers Views Company eMail

main() { int x=20,y=35; x = y++ + x++; y = ++y + ++x; printf("%d %d\n",x,y); } what is the output?

Ramco,

10 8448

main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the output?

Ramco,

9 7937

#define swap1(a,b) a=a+b;b=a-b;a=a-b; main() { int x=5,y=10; swap1(x,y); printf("%d %d\n",x,y); swap2(x,y); printf("%d %d\n",x,y); } int swap2(int a,int b) { int temp; temp=a; b=a; a=temp; return; } what are the outputs?

Ramco,

4 10888




#include main() { char s1[]="Ramco"; char s2[]="Systems"; s1=s2; printf("%s",s1); } what will happen if you executed this code?

Ramco,

4 5660

#include main() { char *p1; char *p2; p1=(char *) malloc(25); p2=(char *) malloc(25); strcpy(p1,"Ramco"); strcpy(p2,"Systems"); strcat(p1,p2); printf("%s",p1); } Tell me the output?

Ramco,

6 7816

main() { int x=10,y=15; x=x++; y=++y; printf("%d %d\n",x,y); } output??

TCS, EBS, Ramco, Sangwin,

19 23702

main() { int a=0; if(a=0) printf("Ramco Systems\n"); printf("India\n"); } output?

Ramco,

7 6771

#include int SumElement(int *,int); void main(void) { int x[10]; int i=10; for(;i;) { i--; *(x+i)=i; } printf("%d",SumElement(x,10)); } int SumElement(int array[],int size) { int i=0; float sum=0; for(;i

Ramco,

5 5223




const char * char * const What is the differnce between the above tow?.

Ramco, TCS,

6 5969

two variables are added answer is stored on not for third variable how it is possible?

3 3412

how to convert binary to decimal and decimal to binary in C lanaguage

IBM, BPO, Far East Promotions, RBS,

7 21213

what is use#in c

3 3859

how to connect oracle in C/C++.

Wipro, TCS,

3 6671

How to use c/c++ code in JAVA

IBM, CDAC, Satyam, Scope International,

10 13495

Explain the importance and use of each component of this string: Foo.Bar, Version=2.0.205.0, Culture=neutral, PublicKeyToken=593777ae2d274679d

TCS,

1 4925


Post New C Questions






Un-Answered Questions { C }

If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..

808


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

856


writ a program to compare using strcmp VIVA and viva with its output.

718


What is the difference between test design and test case design?

790


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

4446






C program to find all possible outcomes of a dice?

1166


Between macros and functions,which is better to use and why?

815


hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...

656


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

823


7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

1271


please give me some tips for the placement in the TCS.

918


Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given

993


hi any body pls give me company name interview conduct "c" language only

823


what are the 10 different models of writing an addition program in C language?

687


praagnovation

787