C Interview Questions
Questions Answers Views Company eMail

Difference between Shallow copy and Deep copy?

779

#include void main() { char *str; long unsigned int add; str="Hello C"; add=&str[0]; printf("%c",add); } What is the output?

Infosys,

4 5052

hello everybody can we change a the adress of a variabl i mean can i put for exemple for a int *p: &p=6 ?????????

1 1774




please send me the code for multiplying sparse matrix using c

956

what is diference between return 0 and return NULL??

3 2773

#include void main() { int a=5,b=6,c; int x=(a

IBM,

8 7209

What are pointers in C?

KPIT,

5 3736

what is difference between #include and #include"stdio.h"

4 3184




how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

1934

Write a function that accepts a sentence as a parameter, and returns the same with each of its words reversed. The returned sentence should have 1 blank space between each pair of words. Demonstrate the usage of this function from a main program. Example: Parameter: “jack and jill went up a hill” Return Value: “kcaj dna llij tnew pu a llih”

Mind Tree,

4 11872

Explain this code. #include void f1(int *k) { *k = *k + 10; } main ( ){ int i; i = 0; printf (" The value of i before call %d \n", i); f1 (&i); printf (" The value of i after call %d \n", i); }

IBM,

3 2010

LOGIC OF Bodmas?

1 6134

main() { int i = -3,j=2,k=0,m; m= ++i || ++j && ++k; printf("%d%d%d",i,j,k,m); }

HCL,

6 10950

define c

TCS, HCL,

6 3788

what is C?

Syntel,

9 4784


Post New C Questions






Un-Answered Questions { C }

find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

729


How will you find a duplicate number in a array without negating the nos ?

868


about c language

739


‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.

1102


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

985






hi, which software companys will take,if d candidate's % is jst 55%?

786


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

4382


Write a C/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 maximum number of concurrent threads that the InnoDB plug-in can create.

728


how to capitalise first letter of each word in a given string?

667


Explain output of printf("Hello World"-'A'+'B'); ?

38


how to write optimum code to divide a 50 digit number with a 25 digit number??

1892


main() { char ch='356'; Printf("%d",ch); } *OUTPUT*:- -18 *Why?*

461


a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f

771


What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }

908


what are the facialities provided by you after the selection of the student.

892