main() { int a,b; printf("%d,%d",scanf("%d%d",&a,&b)); } => do u mean above program's output... =>output will be:2,whatever you enter value for b. =>because scanf is a library fn which will return how many arguements it processes, and second value you are right mr.Satya but i found my self unable to understand that for the first time scanf returns the no of successful matches but how for the second time it returns the value of 'b'.while a function should return the same 'r' value every time.
1 9022write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
ADP,
21271. What will be the output of the following programs.
a) #include
CSC,
7 10025what are threads ? why they are called light weight processes ? what is the relation between process and threads ?
1 3405what is difference between userlevel threads and kernel level threads ?what are the trades offs between these two approaches ? what approach is most frequently used and why ?
1 6022write a program that accepts 3 numbers from the user. dispaly the values in a descending order.
3 6788Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff
3396can we declare a variable in different scopes with different data types? answer in detail
TCS,
3 5556An array name contains base address of the array. Can we change the base address of the array?
4 13959
Write a program in c to replace any vowel in a string with z?
Explain how can I pad a string to a known length?
What tq means in chat?
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
Explain bit masking in c?
Explain the priority queues?
Differentiate between full, complete & perfect binary trees.
What is the best style for code layout in c?
Why malloc is faster than calloc?
How do I use void main?
What is an expression?
What is binary tree in c?
What is actual argument?
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
Why is c called a structured programming language?