2 votes 2 votes Q1)Output with explanation Long int a = scanf("%Id %Id",&a,&a); Printf("%id",a); (A) error (B) garbage value (C) zero (D) 2 Programming in C programming-in-c non-gate + – Lakshman Bhaiya asked Sep 25, 2017 Lakshman Bhaiya 1.1k views answer comment Share Follow See 1 comment See all 1 1 comment reply TheSourabh commented Dec 17, 2023 reply Follow Share will anyone please give me the answer of this problem 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes scanf returns the number of items successfully scanned -- but this is out of GATE scope. Arjun answered Sep 25, 2017 Arjun comment Share Follow See all 4 Comments See all 4 4 Comments reply Lakshman Bhaiya commented Sep 25, 2017 reply Follow Share It means these type of question is not ask GATE Question Paper 0 votes 0 votes Rishabh Gupta 2 commented Sep 25, 2017 reply Follow Share Why are u saying that it is out of scope? It doesn't seem to be any complicated thing. It's even given in the Dennis Ritchie book 0 votes 0 votes Arjun commented Sep 25, 2017 reply Follow Share yes. printf, scanf or any such library functions -- questions related to these are out of GATE scope. 0 votes 0 votes Rishabh Gupta 2 commented Sep 25, 2017 reply Follow Share Ok. Thanks :) 0 votes 0 votes Please log in or register to add a comment.