Company Name Starts with ...
#  A  B  C  D  E   F  G  H  I  J   K  L  M  N  O   P  Q  R  S  T   U  V  W  X  Y  Z

Accenture C Interview Questions
Questions Answers Views Company eMail

Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a); a++; } } Which Statement is/are True w.r.t the above code? I.Executes Successfully & Prints the contents of the array II.Gives the Error:Lvalue Required III.The address of the array should not be changed IV.None of the Above. A)Only I B)Only II C)II & III D)IV

5 4456

what is the output? #define fun(a,b,t) (g ##t=(a),(a)=(b),(b)=g##t) float gfloat; main() { float a=1.12,b=3.14; fun (a,b,float); printf("na=%4.2f,b=%4.2f",a,b); } A)Error in Defining Macro B)a=1.12,b=3.14 C)a=3.14,b=1.12 D)None of the Above

3 7929

study the code: #include void main() { const int a=100; int *p; p=&a; (*p)++; printf("a=%dn(*p)=%dn",a,*p); } What is printed? A)100,101 B)100,100 C)101,101 D)None of the above

15 11179

Which of the following are valid "include" formats? A)#include and #include[file.h] B)#include (file.h) and #include C)#include [file.h] and #include "file.h" D)#include and #include "file.h"

15 11272

how to sort two array of characters and make a new array of characters.

1 4018





what is difference between ++(*p) and (*p)++

17 15710

what is difference between array of characters and string

18 38292

char ch=10;printf("%d",ch);what is the output

14 15639

char ch="{'H','I',0};printf("%s",ch);what is output

9 7362

which one is not preprocessor directive a)#if b)#elif c)#undef d)#pragma

16 15296

what will be the output: main(){char ch;int a=10;printf("%d",ch);}

36 17891

Study the Following Points: a.One Cannot Take the address of a Bit Field b.bit fields cannot be arrayed c.Bit-Fields are machine Dependant d.Bit-fields cannot be declared as static 1. Which of the Following Statements are true w.r.t Bit- Fields A)a,b&c B)Only a & b C)Only c D)All

3 5592

2. What is the function of ceil(X) defined in math.h do? A)It returns the value rounded down to the next lower integer B)it returns the value rounded up to the next higher integer C)the Next Higher Value D)the next lower value

3 3974

3. 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 dfnumber D)None of these

1111

4.A function 'q' that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as: A)int (*q(char*)) [] B)int *q(char*) [] C)int(*q)(char*) [] D)None of the Above

6 9342

Post New Accenture C Interview Questions




Accenture C Interview Questions


Un-Answered Questions

Give a brief introduction to an array in R?

3


What is the life cycle divided into?

95


What is orm in c#?

50


What is ale, idoc, edi, rfc and explain briefly?

89


Is it possible to protect 3phase overload and earth fault of the 3phase system using two CT's.

1039






Do you consider yourself a good team player?

135


Suppose if there is the level of impurity in p-type & n-type semiconductor of pn junction diode is different then what effect on depletion?

61


What is url mapping and how to do it in django ?

3


What is difference between mongodb and dynamodb?

1


What is the sql case statement?

83


How to rename an index in oracle?

100


According to, Fair Debt Collection Practice Act, who are the third parties that the bill collector, can deal with while trying to collect a debt?

121


What is the process chain and how you used it?

76


Which daemon is used for scheduling of the commands?

96


Define binary tree insertion.

124