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 6713what 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 10378study the code:
#include
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
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 78342. 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 55493. 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
18074.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 11917Post New Accenture C Interview Questions
What is server and server types?
What is detailed category in configuration?
How to access Ruby array elements? How many methods are used to access Ruby elements?
What happens if an .swf is loaded into a already occupied level?
Credentials are set of user name and password used by the blue prism process and object to access target application.
Explain the five stages in a dlx pipeline? : .NET Architecture
What is outside sales? How is it different from indoor sales?
How does an apache server work?
What are the tabs at the bottom of excel called?
What should be the selecting criteria for test automation tool for mobile testing?
Explain how is method overriding different from overloading?
What is the functionality and features provided by oracle clusterware?
what is dynamic window and dynamic model ? (worksoft automation tool)
How does Case sensitivity achieved and white spaces used in WMLScript?
How you can compile, jar and run into ant command prompt?