| Other C Interview Questions |
|| Asked @
|what is the purpose of the code, and is there any problem
unsigned int v;
unsigned int i = 0;
while (i < 10)
v[i] = i++;
|What is a memory leak in structures? How can we rectify that?
|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.
Parameter: “jack and jill went up a hill” Return Value:
“kcaj dna llij tnew pu a llih”
|Just came across this question, felt worth sharing, so here
I want you to make a C/C++ program that for any positive
integer n will print all the positive integers from 1 up to
it and then back again!
Let's say n=5 I want the program to print: 1 2 3 4 5 4 3 2 1.
Too easy you say?
Okay then... You can ONLY USE:
1 for loop
1 printf/cout statement
2 integers( i and n)
and as many operations you want.
NO if statements, NO ternary operators, NO tables, NO
pointers, NO functions!
|What is the use of keyword VOLATILE in C?
|what is the output for the code :
printf("%d %d ",scanf("%d%d",&i,&j));
|what is a c-language.what is do.
|When do you say that a digraph is acyclic
A)if and only if its first search does not have back arcs
B)a digraph is acyclic if and only if its first search does
not have back vertices
C)if and only if its first search does not have same
D)None of these
|please help me.. how to write a code of this output??
"Enter range number:"10
1 is an odd number
2 is an even numbers
3 in an odd numbers
"printing all odd numbers:"
"printing all even numbers:"
"sum of all odd numbers:25
"sum of all even numbers:30
using a C Programming ARRAY
pleas pleas help.. its my project ..please :(
|write a program to print %d ?
|What's the difference between a linked list and an array?
|For more C Interview Questions Click Here |