C Interview Questions
Questions Answers Views Company eMail

C program to read the integer and calculate sum and average using single dimensional array

1171

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

1 1959

4. main() { int c=- -2; printf("c=%d",c); }

1360

Write a program to print the following series 2 5 11 17 23 31 41 47 59 ...

2 13007

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

1244

In which layer of the network datastructure format change is done

Honeywell,

1421

write a c program for swapping two strings using pointer

2077

cavium networks written test pattern ..

Cavium Networks,

3581

my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

1105

what is used instead of pointers in java than c?

Vuram,

1 2806

#include int main(){ int a[]={1,2,3,5,1}; int *ptr=a+4; int y=ptr-a; printf("%d",y); }

Zoho,

3 5853

Write a program to generate the first n terms in the series --- 2,3,5,7,11,...,17

2481

main() { char p[] = "hello world!"; p = "vector"; printf("%s",p); }

Vector, Vector India,

2 11255

#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

1248

print pattern 1 1 33 33 555 555 77777777 555 555 33 33 1 1

Winit,

1 7329


Post New C Questions

Un-Answered Questions { C }

Explain a file operation in C with an example.

648


What is class and object in c?

577


How does selection sort work in c?

610


Explain the advantages of using macro in c language?

566


What is a char c?

581






Define Spanning-Tree Protocol (STP)

634


What is the difference between call by value and call by reference in c?

610


What is else if ladder?

600


What is a void * in c?

587


In C programming, what command or code can be used to determine if a number of odd or even?

611


write a c program in such a way that if we enter the today date the output should be next day's date.

1674


What are the types of macro formats?

594


Can include files be nested? How many levels deep can include files be nested?

647


#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??

1531


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

647