Beruflich Dokumente
Kultur Dokumente
Subscribe
A switch statement is generally best to use when you have more than two conditional expressions based on a single variable of numeric type.
Latest Answer: If you have multiple options for a single variable then you
(Answers: 15) Read / Answer
can prefer switch to if-else statement.... Last Updated By aditya on July 26, 2007
2. What is the difference between goto and longjmp() and setjmp()? Subscribe
A goto statement implements a local jump of program execution, and the longjmp() and setjmp() functions implement a nonlocal, or far, jump of program execution.
Generally, a jump in execution of any
Latest Answer: using the normal goto statement we can move only within the function. it is
(Answers: 1) Read / Answer
not possible to go from ... Last Updated By nitin bhokare on October 03, 2005
3. What is an lvalue? Subscribe
An lvalue is an expression to which a value can be assigned. The lvalue expression is located on the left side of an assignment statement, whereas an rvalue is
located on the right side of an assignm
Latest Answer: lvalue of a assignement statement is always a variable it cant be
(Answers: 8) Read / Answer
expr. Assignement is storing of rv... Last Updated By vinayak on July 25, 2007
4. Array is an lvalue or not? Subscribe
An lvalue was defined as an expression to which a value can be assigned. Is an array an expression to which we can assign a value? The answer to this question
is no, because an array is composed of se
Latest Answer: The rvalue is the data value of the variable, that is, what
information it contains. The "r" in rval... Last Updated By Deepak kumar Prasad on (Answers: 2) Read / Answer
August 30, 2006
5. What is page thrashing? Subscribe
Some operating systems (such as UNIX or Windows in enhanced mode) use virtual memory. Virtual memory is a technique for making a machine behave as if it
had more memory than it really has, by using d
Latest Answer: Just ! A wonderful Explaination... Last Updated By arnabganguly
(Answers: 1) Read / Answer
on March 26, 2007
6. What is a const pointer? Subscribe
Latest Answer: a const pointer means the pointer which represents the address of
one value. so if you declare a poi... Last Updated By pradeep kumar v.v.n.k on (Answers: 4) Read / Answer
June 09, 2007
7. When should the register modifier be used? Does it really help? Subscribe
The register modifier hints to the compiler that the variable will be heavily used and should be kept in the CPU’s registers, if possible, so that it can be accessed
faster. There are several restric
Read / Answer
87. Differentiate between a linker and linkage? Subscribe
A linker converts an object code into an executable code by linking together the necessary build in functions. The form and place of declaration where the variable
is declared in a program determine
Read / Answer
88. What are the characteristics of arrays in C? Subscribe
1) An array holds elements that have the same data type 2) Array elements are stored in subsequent memory locations3) Two-dimentional array elements ar
Latest Answer: Array: can be defined as a group of elements stored in contigous
memory locations and all elements h... Last Updated By Basavaraj Yadwad on (Answers: 2) Read / Answer
May 24, 2006
89. When does the compiler not implicitly generate the address of the first element of an array? Subscribe
Whenever an array name appears in an expression such asØ array as an operand of the sizeof operatorØ array as an operand of & operatorØ
Read / Answer
90. What is modular programming? Subscribe
If a program is large, it is subdivided into a number of smaller programs that are called modules or subprograms. If a complex problem is solved using more
modules, this approach is known as mo
Latest Answer: hi please find the difference between function to pointer and
pointer to functionfunction to pointer... Last Updated By madhu on December 06, (Answers: 3) Read / Answer
2006
107. What is #line used for? Subscribe
The #line preprocessor directive is used to reset the values of the _ _LINE_ _ and _ _FILE_ _ symbols, respectively. This directive is commonly used in fourth-
generation languages that generate C lan
Latest Answer: Dear Sir, I am a Computer Science Lecturer. Really 'C' Ques &
Ans are very useful for us. ... Last Updated By A.ASHIQ MOHAMMED on July 07, (Answers: 1) Read / Answer
2005
108. Can a variable be both const and volatile? Subscribe
Yes. The const modifier means that this code cannot change the value of the variable, but that does not mean that the value cannot be changed by means outside
this code. For instance, in the example
Latest Answer: But isnt like the constant variables will be stored by in ROM (read
(Answers: 5) Read / Answer
only memory).Then how can the so... Last Updated By Pradeepa on July 31, 2006
109. how to reverse a sentence Subscribe
Asked by: a
Latest Answer: Program.....#include#include#includevoid main(){char *... Last
(Answers: 5) Read / Answer
Updated By Harshdev Joshi on March 16, 2007
110. All the programs Programs run are tested under Turbo C/C++ compilers. It is assumed that, Subscribe
All the programs are tested under Turbo C/C++ compilers. It is The underlying machine is an¬ Programs run under DOS environment,¬assumed
that, Program is compiled using Turbo C/C++ compiler.The program output¬x86 system, may depend on the information based on this assumptions
(for example sizeof(int) == 2 may be assumed). Predict the output or error(s) for the following:i) void main(){ int const * p=5; printf("%d",++(*p));}
Answer: Compiler error: Cannot modify a constant value. Explanation: p is a pointer to a "constant integer". But we tried to change the value of the "constant
integer". Asked by: Beena
111. ii) main(){ char s[ ]="man"; int i; for(i=0;s[ i ];i++) printf("\n%c%c%c%c",s[ Subscribe
ii) main(){ char s[ ]="man"; int i; for(i=0;s[ i ];i++) printf("\n%c%c%c%c",s[ i ],*(s+i),*(i+s),i[s]);}
mmmm aaaa nnnnExplanation:s[i], *(i+s), *(s+i), i[s] are all different ways of expressing the same idea. Generally array name is the base address for tha Asked by:
Beena
Read / Answer
112. iii) main(){ float me = 1.1; double you = 1.1; if(me==you)printf("I love U");else printf Subscribe
iii) main(){ float me = 1.1; double you = 1.1; if(me==you)printf("I love U");else printf("I hate U");}
I hate UExplanation:For floating point numbers (float, double, long double) the values cannot be predicted exactly. Depending on the number of bytes, the
precession with of the value represented vari Asked by: Beena
Read / Answer
113. iv) main() { static int var = 5; printf("%d ",var--); if(var) main(); } Subscribe
5 4 3 2 1 Explanation:When static storage class is given, it is initialized once. The change in the value of a static variable is retained even between the function
calls. Main is also treated Asked by: Beena
Read / Answer
114. v) main(){ int c[ ]={2.8,3.4,4,6.7,5}; int j,*p=c,*q=c; for(j=0;j Subscribe
2 2 2 2 2 2 3 4 6 5 Explanation: Initially pointer c is assigned to both p and q. In the first loop, since only q is incremented and not c , the value 2 will be printed 5
times. In second loo Asked by: Beena
Read / Answer
115. vi) main(){ extern int i; i=20;printf("%d",i);} Subscribe
Linker Error : Undefined symbol '_i'Explanation: extern storage class in the following declaration, extern int i;specifies to the compiler that the memory for i i Asked
by: Beena
Read / Answer
116. vii)7. main(){ int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d %d %d %d %d",i,j Subscribe
vii)7. main(){ int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d %d %d %d %d",i,j,k,l,m);}
0 0 1 3 1Explanation :Logical operations always give a result of 1 or 0 . And also the logical AND (&&) operator has higher priority over the logical OR (||) operator.
So the expression ‘i++ && j++ & Asked by: Beena
Read / Answer
117. viii) main(){ char *p; printf("%d %d ",sizeof(*p),sizeof(p));} Subscribe
1 2Explanation:The sizeof() operator gives the number of bytes taken by its operand. P is a character pointer, which needs one byte for storing its value (a
character). Hence sizeof(*p) gives a value Asked by: Beena
Latest Answer: ans is 1 & 2 bcoz *p is pointing to some char data which must be 1
(Answers: 3) Read / Answer
byte and size(p) is 2 byte bcoz i... Last Updated By aniljoo on February 12, 2007
118. ix) main(){ int i=3; switch(i) { default:printf("zero"); case 1: printf("on Subscribe
ix) main(){ int i=3; switch(i) { default:printf("zero"); case 1: printf("one"); break; case 2:printf("two"); break; case 3: printf("three"); break; } }
threeExplanation :The default case can be placed anywhere inside the loop. It is executed only when all other cases doesn't match. Asked by: Beena
Read / Answer
119. x) main(){ printf("%x",-1 Subscribe
fff0Explanation :-1 is internally represented as all 1's. When left shifted four times the least significant 4 bits are filled with 0's.The %x format specifier specifies that
the integer value be prin Asked by: Beena
Latest Answer: Depending on the machine implementation it will result in FFFFFF0
(Answers: 1) Read / Answer
(for 32bit ) or FFF0 (16 bit ) ... Last Updated By xeejam on November 18, 2005
120. what is pointer? Subscribe
pointer is used to store the address of given variable Asked by: madhu
Latest Answer: A pointer is a variable, which contains the address of another variable... Last Updated By Priya on August 03, 2006
121. How to perform matrix multiplication using Double linked lists? Subscribe
Asked by: shanti
Latest Answer: http://www.codeproject.com/cpp/sparse_matrices.asp... Last
(Answers: 2) Read / Answer
Updated By Ritesh Patel on November 19, 2005
122. if compiler for c is written in c language, which is used to complie the compiler? Subscribe
Asked by: venu
Latest Answer: The first C compiler was likely written in the B language. The
(Answers: 3) Read / Answer
developers were so influenced b... Last Updated By yba on July 10, 2007
123. What is the difference between#include< >and#include" " Subscribe
Asked by: siva prasad
Latest Answer: #include #include "filename"both of which cause a new file to be
(Answers: 5) Read / Answer
read at the point w... Last Updated By ashutosh_dasgupta on April 29, 2006
124. what is the output of the followint -c- code#define square(a) (a*a)main(){printf("%d",squ Subscribe
what is the output of the followint -c- code#define square(a) (a*a)main(){printf("%d",square(4+5));}
Asked by: pvrajesh
Read / Answer
125. How can you get the number of elements in an array allocated dynamically at runtime? For example -i Subscribe
How can you get the number of elements in an array allocated dynamically at runtime? For example -int *p = (int *) malloc(sizeof(int) * n);int
numElems = ??????? /* n is not available here */
Asked by: Ashutosh
Read / Answer
126. How can send unlimited no of arguments to a function, eg printf function can take any no of argumen Subscribe
How can send unlimited no of arguments to a function, eg printf function can take any no of arguments
Asked by: cshivaprasad
Read / Answer
127. what is the draw back in using friend function in c++ Subscribe
Asked by: venkatesh
Latest Answer: check this FAQ listhttp://www.parashift.com/c++-faq-
(Answers: 3) Read / Answer
lite/friends.html#faq-14.3... Last Updated By muthu kumar k on March 27, 2006
128. In the following code, in which order the functions would be called?x = f1(23,14)*f2(12/4)+f3();a) Subscribe
In the following code, in which order the functions would be called?x = f1(23,14)*f2(12/4)+f3();a) f1, f2, f3 b) f3, f2, f1c) The order may vary from
compiler to compiler d) None of the above
Choose the correct option Asked by: Lokesh M
Read / Answer
129. What is the type of the variable b in the following declaration?#define FLOATPTR float*FLOATPTR a,b Subscribe
What is the type of the variable b in the following declaration?#define FLOATPTR float*FLOATPTR a,b;a) float b) float pointer c) int d) int pointer
Choose the correct option Asked by: Lokesh M
Read / Answer
130. A switch statement cannot includea) constants as arguments b) constant expression as argumentsc) st Subscribe
A switch statement cannot includea) constants as arguments b) constant expression as argumentsc) string as an argument d) None of the above
Choose the correct option Asked by: Lokesh M
271. write a program to convert numbers into words?for ex: 547Five Hundred and Forty Seven Subscribe
Asked by: Preetham
Latest Answer: Gud idea!!! But how will "1003" Work???... Last Updated By
(Answers: 2) Read / Answer
Sundar A on November 30, 2006
272. Write a program to print nos between 100 and 500 which should print nos having 3 different digitsfo Subscribe
Write a program to print nos between 100 and 500 which should print nos having 3 different digitsfor eg:it should print :123,159,342 etc all have
different digits...but not 121, 122,333, see here atleast 2 digits are equal
Asked by: Bhavana
Read / Answer
273. How to reverse a single link list. Thanks Subscribe
Asked by: gudia
Latest Answer: A simple recursive function should do the trickAssuming "node" (Answers: 17) Read / Answer
being typedef-ed to your link structu... Last Updated By Sundar A on November
30, 2006
274. what is Spool Templates, how it is Counted? Subscribe
Asked by: Amjith PS
Read / Answer
275. How we print alphabets using while loop? Subscribe
Asked by: geetasanikop
Latest Answer: no the last one works absolutely right .... ... Last Updated By Vivek
(Answers: 7) Read / Answer
on January 04, 2007
276. What is Static function in C?and what is the use of it Subscribe
Asked by: hema
Latest Answer: The question is already posted on the list..... A lot of answers are
(Answers: 1) Read / Answer
also available.... u should see... Last Updated By vipin gupta on October 20, 2006
277. why c does not have nested functions Subscribe
Asked by: someshwar_goli
Latest Answer: no,c does not have the nested functionit consist of only one
function that is mainwe can declar... Last Updated By garima jain on January 10, (Answers: 2) Read / Answer
2007
278. how to store some value at any desired address? Subscribe
Asked by: sayanta
Latest Answer: Hi , I think whenever you wanna write some data in a... Last
(Answers: 3) Read / Answer
Updated By Vivek Bhadra on January 04, 2007
279. there is an array having duplicates i,e any number can be repeated any no of times .write a program Subscribe
there is an array having duplicates i,e any number can be repeated any no of times .write a programme to print for each no how many times it is
repeated.EX:1,1,1,1,1,2,3,2,3,11 is repeated 6 times2 is repeated 2 times3 is repeated 2 times
Asked by: kalyani
Read / Answer
280. How can you find the number of elements stored in a static array at a time? Subscribe
Asked by: Bharat Chandra Biswal, Bhubaneswar
Latest Answer: actually your answer is for array which contain integer only .......give general form... Last Updated By sweety on December 24, 2006
281. main(){int x=20;int y=35;x=y++ +x++;printf("%d",x);} Subscribe
Asked by: reddappareddy
Latest Answer: here, x = 20; & y = 35; given, x= y++ + x++; so in this case, first we
(Answers: 12) Read / Answer
put the ... Last Updated By prashant kara on January 24, 2007
282. What are the differences between Arrays and Linked lists and why we go for linked lists if we have Subscribe
What are the differences between Arrays and Linked lists and why we go for linked lists if we have pointers to arrays?
Asked by: Narsimha Rao T
Read / Answer
283. what are commandline arguements. Plz explain me in detail Subscribe
Asked by: Raghavendra
Latest Answer: command line aruments are nothing but passing the function
arguments through command line. ex: ... Last Updated By T.Raghavendra on (Answers: 1) Read / Answer
November 24, 2006
284. can we write a c prog without #include? Subscribe
Asked by: prashant j
Latest Answer: you need not write #include, but at the time of compilation you
need to compile with options which d... Last Updated By navin_chand on March (Answers: 12) Read / Answer
25, 2007
285. How, multidimensional array initilized dynaminically? Subscribe
Asked by: Pankaj
Latest Answer: a) int **array1 = (int **)malloc(nrows * sizeof(int *)); for(i = 0; i <
(Answers: 5) Read / Answer
nrows; i++) array1[i] = mal... Last Updated By dasam on April 02, 2007
286. Find the output for the following C programmain(){char *ptr = "Ramco Systems";*ptr++;prin Subscribe
Find the output for the following C programmain(){char *ptr = "Ramco Systems";*ptr++;printf("%sn",ptr);ptr++;printf("%sn",ptr);}explain difference
between *ptr++ and ptr++
Asked by: johnhu
Read / Answer
287. Why does a character constant require two bytes of memory space in C programming Subscribe
Asked by: bharat biswal
Latest Answer: This is wrong one ..please try this code as-int main(){printf("size of
(Answers: 3) Read / Answer
char const %dn",siz... Last Updated By mprashant on February 19, 2007
288. There are numbers from 1 to N in an array. out of these, one of the number gets duplicated and one Subscribe
There are numbers from 1 to N in an array. out of these, one of the number gets duplicated and one is missing. The task is to write a program to find
out the duplicate number. Conditions: you have to do it in O(n) time without using any auxilary space (array, bitsets, maps etc..).
Asked by: vipin gupta
Read / Answer
289. char *f(void){ char *a; a=malloc(sizeof(char)*10); strcpy(a,"hello World"); return a; }in Subscribe
char *f(void){ char *a; a=malloc(sizeof(char)*10); strcpy(a,"hello World"); return a; }int main(){ char *b; b = f(); printf("%s",b); }Is there any error in this
code?
Asked by: Rubel
Read / Answer
290. What is the size of int in C or C++?Answer:1) 2 byte2) system dependend3) compiler dependend Subscribe
Asked by: BHISMADEB
Latest Answer: The answer is 2 i.e it is system dependent ....... Last Updated By AnupDas on February 04, 2007
291. why an array initialisation is not possible in the main()ex:---------char arry[6][6];main(){c={&qu Subscribe
why an array initialisation is not possible in the main()ex:---------char arry[6][6];main(){c={"rotor","motor",peter","mater","water"};}
Asked by: j_priyaa
Read / Answer
292. Write a C program to find biggest of 4 numbers without using relational operators? Subscribe
Asked by: Arun Reddy.Nare
Latest Answer: n1,n2,n3,n4if(n1-n2) && (n1-n3) && (n1-n4)... Last Updated By
(Answers: 6) Read / Answer
Praveen K on January 19, 2007
293. Why does indexes start with zero? Subscribe
Asked by: barathi
Latest Answer: In order to access an element in an array, we will use index.Let us
declare:int a[20];Here a is the ... Last Updated By M. PAVAN KUMAR REDDY on (Answers: 1) Read / Answer
January 18, 2007
294. what is the difference between auto and register storage class? when we use it in real time? Subscribe
Asked by: bajjuri.thirupathi
Latest Answer: Apart from the above mentioned ones, the maximum number that
could be stored in registers depends so... Last Updated By div_han on March 13, (Answers: 2) Read / Answer
2007
295. what will be the ouput of the following program.,if any error what is it.#includevoid main(){float Subscribe
what will be the ouput of the following program.,if any error what is it.#includevoid main(){float x=90.5,y=5.0,z;z=x%y;printf("%f",z);}
Asked by: pavankishore
Read / Answer
296. Why cannot we pass or return any parameters from the Interrupts, please give me an answer taking as Subscribe
Why cannot we pass or return any parameters from the Interrupts, please give me an answer taking as a interrupts in the micro controllers.
Asked by: Satish
Read / Answer
297. How we increment a value without using operator'+'.q2?what is single tone class. Subscribe
How we increment a value without using operator'+'.q2?what is single tone class. thanks
Asked by: gudia
Read / Answer
298. what is conditional compiling? Subscribe
Asked by: dinesh
Latest Answer: Conditional Compilation:::::Conditional compilation is the process
of selecting which code to compil... Last Updated By fcawad_03 on February 18, (Answers: 2) Read / Answer
2007
299. How does strcmpi() compare two string as it is not a case sensitive? Subscribe
Asked by: malaram
Latest Answer: Either convert both the strings to lower case / upper case before
(Answers: 1) Read / Answer
comparing... Last Updated By Raghunath on January 30, 2007
300. Write a program to get strings and to substitute character from string1 to string2(equv to UNIX com Subscribe
Write a program to get strings and to substitute character from string1 to string2(equv to UNIX command tr)for example:string1: "abc"string2: "def"the
occurrence of 'a' will be replaced by 'd' , 'b' will be replaced by 'e' , 'c' will be replaced by 'f'AND for less complexity assume the string1 and string2 are
of same size
Asked by: rafiuddin
301. What is the difference between character array and string in C? Subscribe
Asked by: ravi.dokania
Latest Answer: I think there is nothing difference b/w both because string is a
collection of character or we can s... Last Updated By malaram on February 06, (Answers: 1) Read / Answer
2007
302. What is the output of the following program?void main(){int *ptr =55;clrscr();printf("%d" Subscribe
What is the output of the following program?void main(){int *ptr =55;clrscr();printf("%d", ++(ptr));}
Asked by: Seetham
Read / Answer
303. Q1 Given an array of characters. How would you reverse it. ? How would you reverse it withou Subscribe
Q1 Given an array of characters. How would you reverse it. ? How would you reverse it without using indexing in the array ?Q2 How can I call a
function, given its name as a string? Q3 How can I invoke another program from within a C program? Q4 How can I access memory located at a
certain address? Q5 How can I allocate arrays or structures bigger than 64K? Q6 How can I find out how much memory is available? Q7 How can I
read a directory in a C program? Q8 How can I increase the allowable
Asked by: rameshwar83
Read / Answer
304. 1.write a function swap(a,b) which interchanges 2 integers .call the function from the sort() funt Subscribe
1.write a function swap(a,b) which interchanges 2 integers .call the function from the sort() funt whenever two integers have to be interchanged.2.
write a c program to add the diagonal elements of an 3x3 array.3.write a function called max(a,b,c) that finds the bigger of 2 nos a and b and stores it
in the address of the int variable passed as the third argument.
Asked by: brian
Read / Answer
305. what is structure padding?where it is used in real time applications? Subscribe
Asked by: praneeth
Latest Answer: I understand that some compilers pad some bytes to the aggregate
data types in order to access the m... Last Updated By fcawad_03 on February 21, (Answers: 2) Read / Answer
2007
306. Waht is the sample code to print pascals traingle in c Subscribe
Asked by: lokesh
Latest Answer: The code mentioned here is not exactly of pascal triangle but it
(Answers: 1) Read / Answer
gives the output in the following f... Last Updated By baseersd on June 20, 2007
307. what is the difference between these two syntax#include and #include "stdio.h" Subscribe
Asked by: ankur sharma
Latest Answer: #include"stdio.h" will only compile standard input output function...
(Answers: 3) Read / Answer
Last Updated By jatin bhatia on March 26, 2007
308. the fields in a structure of a c program are by default 1. protected 2. public 3. private Subscribe
the fields in a structure of a c program are by default 1. protected 2. public 3. private 4. can't say
Asked by: Rujul
Read / Answer
309. cfront 1. is front end of a c compiler 2. is the pre-processor of a c compiler 3. translat Subscribe
cfront 1. is front end of a c compiler 2. is the pre-processor of a c compiler 3. translates a c ++ code to its equivalent 4. is both pre-processor and front
end
Asked by: Rujul
Read / Answer
310. printf ("%d" ,printf {"tim") ); 1. results in a syntax error 2. outpu Subscribe
printf ("%d" ,printf {"tim") ); 1. results in a syntax error 2. outputs tim 3 3. outputs garbage 4. prints tim and terminates abruptly
Asked by: Rujul
311. the header files used in C programs are usually found in 1. /bin/include 2. /usr/bi Subscribe
the header files used in C programs are usually found in 1. /bin/include 2. /usr/bin/include 3. /dev/include 4. /usr/ include
Asked by: Rujul
Read / Answer
312. the value of an automatic variable that is declared but not initialized will be 1. 0 Subscribe
the value of an automatic variable that is declared but not initialized will be 1. 0 2. -1 3. unpredictable 4. 3
Asked by: Rujul
Read / Answer
313. break statement can be simulated by using 1. go to 2. return 3. exit 4. bot Subscribe
break statement can be simulated by using 1. go to 2. return 3. exit 4. both return and exit
Asked by: Rujul
Read / Answer
314. Lint is 1. a C compiler 2. an inter-active debugger 3. a C interpreter 4. a to Subscribe
Lint is 1. a C compiler 2. an inter-active debugger 3. a C interpreter 4. a tool for analyzing a C program
Asked by: Rujul
Read / Answer
315. the following program fragment int m=n=b=8; char wer[80]; sprintf(wer, " Subscribe
the following program fragment int m=n=b=8; char wer[80]; sprintf(wer, "%d%d%d", m, n, b,); puts (wer): 1. prints the string 8 8 8 2. prints the null
string 3. prints the string m, n, b 4. none of these
Asked by: Rujul
Read / Answer
316. Consider thefollowing code for finding the factorial of given positive integer IFACT=1 Subscribe
Consider thefollowing code for finding the factorial of given positive integer IFACT=1 DO 100 I=2,N,2 100 IFACT = IFACT*i*(i-1) For which value of N,
the above FORTRAN code will not work ? 1. N is even 2. N is odd 3. N is perfect number 4. N mod 3 =0
Asked by: Rujul
Read / Answer
317. Integral data type Subscribe
which one of the following is not an integral data type 1. Character 2. Boolean 3. Integer 4. Pointer type Asked by: Rujul
Latest Answer: Pointer Type is not an integral.Even though pointer type hold
integer type value, It doesn't mea... Last Updated By shivakumara.madegowda on (Answers: 1) Read / Answer
March 20, 2007
318. Consider the following program:#includemain(){int i=3;int *j;int **k;j=&i;k=&j;printf("Address Subscribe
Consider the following program:#includemain(){int i=3;int *j;int **k;j=&i;k=&j;printf("Address of i=%un",&i);printf("Address of j=%un",&j);printf("Address
of k=%un",&k);return 0;}Suppose the answer is:Address of i=2004Address of j=2002Address of k=2000why is the address decreasing ?
Asked by: L.Ranjani
Read / Answer
319. what is the difference between global int & static int declaration Subscribe
Asked by: suresh
Latest Answer: Static int variable are accessed only inside the file where it
(Answers: 1) Read / Answer
is defined. Thus we ca... Last Updated By RaviPrakash on March 30, 2007
320. what is meant by "contagious memory allocation"? Subscribe
Asked by: ragav_sathish
Latest Answer: Contiguous memory is meant by continuous memory space in the available memory. so when we allocate a... Last Updated By bairaviuthra on
June 19, 2007
321. How size of structure can be calculated? What is byte alignment used while allocating memory for st Subscribe
How size of structure can be calculated? What is byte alignment used while allocating memory for structure members.
Asked by: svyengalwar
Read / Answer
322. What is heap memory that is used to store global & static variables of C. Subscribe
Asked by: svyengalwar
Read / Answer
323. If we pass null pointer in malloc or calloc function, What will be the result? Subscribe
Asked by: parvesh devi
Latest Answer: calloc(NULL, 2) = malloc(2).calloc(NULL,0) = malloc(0).... Last
(Answers: 1) Read / Answer
Updated By Lohith Nayak on June 08, 2007
324. What does it mean by "Host Connectivity application"? Subscribe
Asked by: santosh
Read / Answer
325. what are the arithmetic operations that can be performed on pointers? Subscribe
Asked by: navya nr punarva
Latest Answer: The arithmetic operations that can be performed using pointers is
(Answers: 1) Read / Answer
of three.... one is for addition, ... Last Updated By thulasi on April 30, 2007
326. What is difference between main() and void main()? Subscribe
Asked by: M.SREEDHAR REDDY
Latest Answer: program contain statement main it consider as int main .should
return a value. void means null... Last Updated By mohanapriyaaeee on June 24, (Answers: 2) Read / Answer
2007
327. What is the difference between a string constant and a constant string? Subscribe
Asked by: ykbharat
Latest Answer: A string constant consists of a sequence of characters enclosed
(Answers: 1) Read / Answer
indouble-quote marks. For example:... Last Updated By YRP on May 07, 2007
328. Which area of RAM does static variables get stored? Subscribe
Asked by: Riya
Latest Answer: Static is stored in the RAM -TPA areaThe TPA is subdivided to
code segment and data segment.Static v... Last Updated By muthu on June 20, (Answers: 3) Read / Answer
2007
329. What does e stand for in getche() function in C language. Subscribe
Asked by: kumar_sarma2000
Latest Answer: Hi , in getche() e stands for "echo" When the function is
(Answers: 1) Read / Answer
encountered, user has to type in... Last Updated By Shilpa on May 19, 2007
330. how to find the size of an integer without using the sizeof operator Subscribe
Asked by: sohita maheshwari
Latest Answer: #define SIZEOF(X) ( (char *) (X+1) - (char *) (X) )main(){int
(Answers: 1) Read / Answer
*x;double *y;printf("The Size of ... Last Updated By praveenp16 on May 20, 2007
331. main(){ int c[ ]={2.8,3.4,4,6.7,5}; int j,*p=c,*q=c; for(j=0;j Subscribe
Asked by: souji1425
Latest Answer: Answer:2 2 2 2 2 2 3 4 5*c points at c[0] and this pointer never
(Answers: 1) Read / Answer
moves in the first loopIn the secon... Last Updated By guest on June 12, 2007
332. What would be the output of this program & Why#include#define one two#define two oneint main(){ in Subscribe
What would be the output of this program & Why#include#define one two#define two oneint main(){ int one=1,two=2; printf("%d%d",one,two); return
0;}
Asked by: himanshujoshi
Read / Answer
333. Difference between program memory, data memory, stack memory and heap memory? Subscribe
Asked by: senthil
Latest Answer: When the program is compiled and linked different parts of the
program is organised in seperate segm... Last Updated By Sridhar V on July 09, (Answers: 2) Read / Answer
2007
334. What is the preprocesser and why it need?What are the types in preprocessor? Subscribe
Asked by: saran
Read / Answer
335. To take a string from the User & then arrange the characters in that string in ascending order like Subscribe
To take a string from the User & then arrange the characters in that string in ascending order like if user enters "babcac" the program should print it as
"aabbcc"
Asked by: nadeem
Read / Answer
336. What is the advantage of zero filling in calloc() ? Subscribe
Asked by: viswanath
Read / Answer
337. How does inheritance in C works? Subscribe
Asked by: viswanath
Latest Answer: By using multiple structures means structure within a structure,
(Answers: 1) Read / Answer
we can achive inheritance in C.... Last Updated By rakio on July 09, 2007
338. What is the application of itoa() Subscribe
Asked by: rajesh
Latest Answer: Converts an integer value to a null-terminated string using the
specified base.If base is 10 and va... Last Updated By shine_babu on July 16, (Answers: 2) Read / Answer
2007
339. For what purpose pragma.h header file is used? Subscribe
Asked by: vanidevi
Read / Answer
340. Why does an array index number starts from zero? Subscribe
Asked by: Gautam Bhalla
Latest Answer: Because array index shows distance from the 1st element. Since the first element is zero distance aw... Last Updated By Nikhil on July 23,
2007
341. What is volatile qualifier? Subscribe
Asked by: suresh
Read / Answer
342. What is a qualifier? Subscribe
Asked by: rajeswari
Read / Answer
343. What is run time? Is there any difference between run time and compile time? Subscribe
Asked by: kanna
Latest Answer: Compile is a process that converts your source code into object
(Answers: 1) Read / Answer
code.(creation of .exe file)Run time... Last Updated By basheer on July 28, 2007
344. Can you write and get output for C program without using printf and scanf statements? If Yes, How? Subscribe
Asked by: sampathk
Latest Answer: You can also use functions like fprintf(),fputs(),gets(),fgets() instead
(Answers: 2) Read / Answer
of printf() and scanf(... Last Updated By baseersd on July 26, 2007
345. What is the return type of the printf and scanf functions ?1) void2) float3) int4) any Subscribe
int Asked by: ashish1287
Latest Answer: Hi Ashish,The return type of printf() and scanf() is intIn the
declaration, observe the return type ... Last Updated By baseersd on July 27, (Answers: 1) Read / Answer
2007
346. Can we define an array without any constant expression? If Yes, How? Subscribe
Asked by: ajay
Read / Answer
347. Write any small program that will compile in "C" but not in "C++" Subscribe
Asked by: gaurav pathak
Latest Answer: The following program compiles with 'C' with a warning about return type of main. But it wouldn't co... Last Updated By vipin gupta on July 28,
2007