C Interview Questions
Questions Answers Views Company eMail

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

1177

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

1 1969

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

1364

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

2 13032

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

1255

In which layer of the network datastructure format change is done

Honeywell,

1428

write a c program for swapping two strings using pointer

2092

cavium networks written test pattern ..

Cavium Networks,

3592

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

1113

what is used instead of pointers in java than c?

Vuram,

1 2817

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

Zoho,

3 5877

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

2489

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

Vector, Vector India,

2 11284

#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

1259

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

Winit,

1 7350


Post New C Questions

Un-Answered Questions { C }

The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference

669


What does int main () mean?

544


What are the different categories of functions in c?

641


1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

3138


if p is a string contained in a string?

1404






How can I list all of the predefined identifiers?

576


Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer

3839


Is calloc better than malloc?

570


What is the right type to use for boolean values in c?

580


What is table lookup in c?

625


how to build a exercise findig min number of e heap with list imlemented?

1606


Explain the ternary tree?

598


What are the two types of functions in c?

562


What are nested functions in c?

561


What are the different types of control structures in programming?

658